pub struct MDBFileInfoView { /* private fields */ }Implementations§
Source§impl MDBFileInfoView
impl MDBFileInfoView
Sourcepub fn new(data: Bytes) -> Result<Self>
pub fn new(data: Bytes) -> Result<Self>
Creates a new view of an MDBFileInfo object from a slice, checking it for the correct bounds. Copies should be optimized out.
pub fn from_data_and_header( header: FileDataSequenceHeader, data: Bytes, ) -> Result<Self>
pub fn header(&self) -> &FileDataSequenceHeader
pub fn num_entries(&self) -> usize
pub fn file_hash(&self) -> MerkleHash
pub fn file_flags(&self) -> u32
pub fn contains_metadata_ext(&self) -> bool
pub fn contains_verification(&self) -> bool
pub fn entry(&self, idx: usize) -> FileDataSequenceEntry
pub fn verification(&self, idx: usize) -> FileVerificationEntry
pub fn byte_size(&self, with_verification: bool) -> usize
pub fn serialize<W: Write>( &self, writer: &mut W, with_verification: bool, ) -> Result<usize>
pub fn bytes(&self) -> Bytes
Sourcepub fn metadata_ext(&self) -> Option<FileMetadataExt>
pub fn metadata_ext(&self) -> Option<FileMetadataExt>
Returns the metadata extension if present.
Trait Implementations§
Source§impl Clone for MDBFileInfoView
impl Clone for MDBFileInfoView
Source§fn clone(&self) -> MDBFileInfoView
fn clone(&self) -> MDBFileInfoView
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MDBFileInfoView
impl Debug for MDBFileInfoView
Source§impl From<&MDBFileInfoView> for MDBFileInfo
impl From<&MDBFileInfoView> for MDBFileInfo
Source§fn from(view: &MDBFileInfoView) -> Self
fn from(view: &MDBFileInfoView) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MDBFileInfoView
impl PartialEq for MDBFileInfoView
impl StructuralPartialEq for MDBFileInfoView
Auto Trait Implementations§
impl !Freeze for MDBFileInfoView
impl RefUnwindSafe for MDBFileInfoView
impl Send for MDBFileInfoView
impl Sync for MDBFileInfoView
impl Unpin for MDBFileInfoView
impl UnsafeUnpin for MDBFileInfoView
impl UnwindSafe for MDBFileInfoView
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> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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