pub struct BlockMeta { /* private fields */ }Implementations§
Source§impl BlockMeta
impl BlockMeta
pub fn with_data(data: NewBlockMeta) -> Self
pub fn load(&self) -> LoadedBlockMeta
pub fn flags(&self) -> BlockFlags
pub fn ref_by_mc_seqno(&self) -> u32
pub fn gen_utime(&self) -> u32
pub fn add_flags(&self, flags: BlockFlags) -> bool
pub fn remove_flags(&self, flags: BlockFlags) -> bool
Trait Implementations§
Source§impl StoredValue for BlockMeta
impl StoredValue for BlockMeta
Source§type OnStackSlice = [u8; 12]
type OnStackSlice = [u8; 12]
On-stack buffer type (see
smallvec::SmallVec)Source§fn serialize<T: StoredValueBuffer>(&self, buffer: &mut T)
fn serialize<T: StoredValueBuffer>(&self, buffer: &mut T)
Serializes the data to the buffer
Source§fn deserialize(reader: &mut &[u8]) -> Selfwhere
Self: Sized,
fn deserialize(reader: &mut &[u8]) -> Selfwhere
Self: Sized,
Deserializes the data from the buffer. Read more
Source§fn from_slice(data: &[u8]) -> Selfwhere
Self: Sized,
fn from_slice(data: &[u8]) -> Selfwhere
Self: Sized,
Deserializes the data from the buffer. Read more
Source§fn to_vec(&self) -> SmallVec<Self::OnStackSlice>
fn to_vec(&self) -> SmallVec<Self::OnStackSlice>
Constructs on-stack buffer with the serialized object
Auto Trait Implementations§
impl !Freeze for BlockMeta
impl RefUnwindSafe for BlockMeta
impl Send for BlockMeta
impl Sync for BlockMeta
impl Unpin for BlockMeta
impl UnwindSafe for BlockMeta
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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