Struct endbasic_std::storage::DriveFiles
source · [−]pub struct DriveFiles { /* private fields */ }
Expand description
Collection of entries in the store and their metadata. Used to represent the result of the
Drive::enumerate
call.
Implementations
sourceimpl DriveFiles
impl DriveFiles
sourcepub fn new(
dirents: BTreeMap<String, Metadata>,
disk_quota: Option<DiskSpace>,
disk_free: Option<DiskSpace>
) -> Self
pub fn new(
dirents: BTreeMap<String, Metadata>,
disk_quota: Option<DiskSpace>,
disk_free: Option<DiskSpace>
) -> Self
Creates a new collection of files with the given dirents
.
sourcepub fn dirents(&self) -> &BTreeMap<String, Metadata>
pub fn dirents(&self) -> &BTreeMap<String, Metadata>
Returns the collection of files in this result.
sourcepub fn disk_quota(&self) -> &Option<DiskSpace>
pub fn disk_quota(&self) -> &Option<DiskSpace>
Returns the user’s disk quota, if known.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DriveFiles
impl Send for DriveFiles
impl Sync for DriveFiles
impl Unpin for DriveFiles
impl UnwindSafe for DriveFiles
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more