pub struct BoxedFsMetadataValue(pub Box<dyn FsMetadataValue>);Tuple Fields§
§0: Box<dyn FsMetadataValue>Implementations§
Source§impl BoxedFsMetadataValue
impl BoxedFsMetadataValue
pub fn new<T: FsMetadataValue + 'static>(metadata: T) -> Self
Trait Implementations§
Source§impl Debug for BoxedFsMetadataValue
impl Debug for BoxedFsMetadataValue
Source§impl FsMetadataValue for BoxedFsMetadataValue
impl FsMetadataValue for BoxedFsMetadataValue
fn file_type(&self) -> FileType
fn len(&self) -> u64
fn accessed(&self) -> Result<SystemTime>
fn changed(&self) -> Result<SystemTime>
fn created(&self) -> Result<SystemTime>
fn modified(&self) -> Result<SystemTime>
fn dev(&self) -> Result<u64>
fn ino(&self) -> Result<u64>
fn mode(&self) -> Result<u32>
fn nlink(&self) -> Result<u64>
fn uid(&self) -> Result<u32>
fn gid(&self) -> Result<u32>
fn rdev(&self) -> Result<u64>
fn blksize(&self) -> Result<u64>
fn blocks(&self) -> Result<u64>
fn is_block_device(&self) -> Result<bool>
fn is_char_device(&self) -> Result<bool>
fn is_fifo(&self) -> Result<bool>
fn is_socket(&self) -> Result<bool>
fn file_attributes(&self) -> Result<u32>
Auto Trait Implementations§
impl Freeze for BoxedFsMetadataValue
impl !RefUnwindSafe for BoxedFsMetadataValue
impl !Send for BoxedFsMetadataValue
impl !Sync for BoxedFsMetadataValue
impl Unpin for BoxedFsMetadataValue
impl !UnwindSafe for BoxedFsMetadataValue
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> PathsInErrorsExt for T
impl<T> PathsInErrorsExt for T
Source§fn with_paths_in_errors(&self) -> SysWithPathsInErrors<&Self>
fn with_paths_in_errors(&self) -> SysWithPathsInErrors<&Self>
Wraps
self in a SysWithPathsInErrors that includes paths in error messages.