pub struct M2dirFullEntry { /* private fields */ }Expand description
An M2dirEntry paired with its file contents and flags metadata.
Produced by the bulk reads on
M2dirClient, which fetch an entry’s
bytes and its .flags sidecar in one pass.
Implementations§
Source§impl M2dirFullEntry
impl M2dirFullEntry
Sourcepub fn from_parts(
entry: M2dirEntry,
contents: Vec<u8>,
flags: M2dirFlags,
) -> Self
pub fn from_parts( entry: M2dirEntry, contents: Vec<u8>, flags: M2dirFlags, ) -> Self
Builds a full entry from its resolved handle, file contents and flags set.
Sourcepub fn entry(&self) -> &M2dirEntry
pub fn entry(&self) -> &M2dirEntry
Returns the underlying entry handle (id and on-disk path).
Sourcepub fn flags(&self) -> &M2dirFlags
pub fn flags(&self) -> &M2dirFlags
Returns the flags read from the entry’s .flags sidecar.
Trait Implementations§
Source§impl Clone for M2dirFullEntry
impl Clone for M2dirFullEntry
Source§fn clone(&self) -> M2dirFullEntry
fn clone(&self) -> M2dirFullEntry
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 moreSource§impl Debug for M2dirFullEntry
impl Debug for M2dirFullEntry
impl Eq for M2dirFullEntry
Source§impl Ord for M2dirFullEntry
impl Ord for M2dirFullEntry
Source§fn cmp(&self, other: &M2dirFullEntry) -> Ordering
fn cmp(&self, other: &M2dirFullEntry) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for M2dirFullEntry
impl PartialEq for M2dirFullEntry
Source§impl PartialOrd for M2dirFullEntry
impl PartialOrd for M2dirFullEntry
impl StructuralPartialEq for M2dirFullEntry
Auto Trait Implementations§
impl Freeze for M2dirFullEntry
impl RefUnwindSafe for M2dirFullEntry
impl Send for M2dirFullEntry
impl Sync for M2dirFullEntry
impl Unpin for M2dirFullEntry
impl UnsafeUnpin for M2dirFullEntry
impl UnwindSafe for M2dirFullEntry
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