pub struct Entry { /* private fields */ }Expand description
Entry represents an entry’s path and metadata.
Lister and [crate::blocking::Lister] return Entry values.
Implementations§
Source§impl Entry
impl Entry
Sourcepub fn path(&self) -> &str
pub fn path(&self) -> &str
Path of entry. Path is relative to operator’s root.
Only valid in current operator.
If this entry is a dir, path MUST end with /
Otherwise, path MUST NOT end with /.
Sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
Name of entry. Name is the last segment of path.
If this entry is a dir, name MUST end with /
Otherwise, name MUST NOT end with /.
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§
Source§impl IntoComposeInput for Entry
impl IntoComposeInput for Entry
Source§fn into_compose_input(self) -> (String, ComposeSourceOptions)
fn into_compose_input(self) -> (String, ComposeSourceOptions)
Convert
self into a source path and options.Source§impl IntoDeleteInput for Entry
Implement IntoDeleteInput for Entry so a lister can feed a deleter.
impl IntoDeleteInput for Entry
Implement IntoDeleteInput for Entry so a lister can feed a deleter.
Source§fn into_delete_input(self) -> (String, DeleteOptions)
fn into_delete_input(self) -> (String, DeleteOptions)
Convert
self into an owned path and delete options.Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin 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