pub struct SectionHeader {
pub magic: [u8; 2],
pub block_size: u16,
pub entry_type: UnifiedLogType,
pub allocated: u64,
pub next_section: u64,
pub used: u32,
pub is_open: bool,
pub context: SectionContext,
}Expand description
One linked section. The allocation includes its 512-byte header reservation.
Fields§
§magic: [u8; 2]§block_size: u16§entry_type: UnifiedLogType§allocated: u64§next_section: u64§used: u32§is_open: bool§context: SectionContextTrait 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 Clone for SectionHeader
impl Clone for SectionHeader
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 Forget for SectionHeader
impl Freeze for SectionHeader
impl RefUnwindSafe for SectionHeader
impl Send for SectionHeader
impl Sync for SectionHeader
impl Unpin for SectionHeader
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§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 moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more