pub struct Entry { /* private fields */ }Expand description
Entry is returned by Page or BlockingPage during list operations.
§Notes
Differences between crate::Entry and oio::Entry:
crate::Entryis the user’s public API and have less public methods.oio::Entryis the raw API and doesn’t expose to users.
Implementations§
Source§impl Entry
impl Entry
Sourcepub fn new(path: &str, meta: Metadata) -> Entry
pub fn new(path: &str, meta: Metadata) -> Entry
Create a new entry by its corresponding underlying storage.
Sourcepub fn metadata_mut(&mut self) -> &mut Metadata
pub fn metadata_mut(&mut self) -> &mut Metadata
Get mutable metadata of entry.
Sourcepub fn into_parts(self) -> (String, Metadata)
pub fn into_parts(self) -> (String, Metadata)
Consume this entry to get its path and metadata.
Trait Implementations§
impl Eq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more