pub struct MockForgeMetadata { /* private fields */ }Expand description
Metadata implementation for MockForge storage
Trait Implementations§
Source§impl Clone for MockForgeMetadata
impl Clone for MockForgeMetadata
Source§fn clone(&self) -> MockForgeMetadata
fn clone(&self) -> MockForgeMetadata
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MockForgeMetadata
impl Debug for MockForgeMetadata
Source§impl Metadata for MockForgeMetadata
impl Metadata for MockForgeMetadata
Source§fn is_symlink(&self) -> bool
fn is_symlink(&self) -> bool
Returns true if the path is a symbolic link.
Source§fn modified(&self) -> Result<SystemTime>
fn modified(&self) -> Result<SystemTime>
Returns the last modified time of the path.
Source§fn links(&self) -> u64
fn links(&self) -> u64
Returns the number of links to the file. The default implementation always returns
1Source§fn permissions(&self) -> Permissions
fn permissions(&self) -> Permissions
Returns the
permissions of the file. The default implementation assumes unix permissions
and defaults to “rwxr-xr-x” (octal 7755)Auto Trait Implementations§
impl Freeze for MockForgeMetadata
impl RefUnwindSafe for MockForgeMetadata
impl Send for MockForgeMetadata
impl Sync for MockForgeMetadata
impl Unpin for MockForgeMetadata
impl UnwindSafe for MockForgeMetadata
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)