pub struct SlabHeader {
pub format_version: u16,
pub slab_id: SlabId,
pub total_length: u64,
pub ec_descriptor: u8,
pub crypto_hint: u8,
}Expand description
Parsed slab header.
Fields§
§format_version: u16§slab_id: SlabId§total_length: u64§ec_descriptor: u8§crypto_hint: u8Implementations§
Source§impl SlabHeader
impl SlabHeader
Trait Implementations§
Source§impl Clone for SlabHeader
impl Clone for SlabHeader
Source§fn clone(&self) -> SlabHeader
fn clone(&self) -> SlabHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SlabHeader
Source§impl Debug for SlabHeader
impl Debug for SlabHeader
impl Eq for SlabHeader
Source§impl PartialEq for SlabHeader
impl PartialEq for SlabHeader
impl StructuralPartialEq for SlabHeader
Auto Trait Implementations§
impl Freeze for SlabHeader
impl RefUnwindSafe for SlabHeader
impl Send for SlabHeader
impl Sync for SlabHeader
impl Unpin for SlabHeader
impl UnsafeUnpin for SlabHeader
impl UnwindSafe for SlabHeader
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more