pub struct SectionHeader {
pub magic: [u8; 2],
pub entry_type: UnifiedLogType,
pub section_size: u32,
pub filled_size: u32,
}
Expand description
Each concurrent sublogger is tracked through a section header. They form a linked list of sections. The entry type is used to identify the type of data in the section.
Fields§
§magic: [u8; 2]
§entry_type: UnifiedLogType
§section_size: u32
§filled_size: u32
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for SectionHeader
impl<'__de, __Context> BorrowDecode<'__de, __Context> for SectionHeader
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Debug for SectionHeader
impl Debug for SectionHeader
Source§impl<__Context> Decode<__Context> for SectionHeader
impl<__Context> Decode<__Context> for SectionHeader
Source§impl Default for SectionHeader
impl Default for SectionHeader
Source§impl Display for SectionHeader
impl Display for SectionHeader
Auto Trait Implementations§
impl Freeze for SectionHeader
impl RefUnwindSafe for SectionHeader
impl Send for SectionHeader
impl Sync for SectionHeader
impl Unpin for SectionHeader
impl UnwindSafe for SectionHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()
] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString
]. Read more