pub struct MemFloppyDisk { /* private fields */ }Implementations§
Source§impl MemFloppyDisk
impl MemFloppyDisk
Trait Implementations§
Source§impl Debug for MemFloppyDisk
impl Debug for MemFloppyDisk
Source§impl<'a> FloppyDirEntry<'a, MemFloppyDisk> for MemDirEntry
impl<'a> FloppyDirEntry<'a, MemFloppyDisk> for MemDirEntry
fn path(&self) -> PathBuf
fn file_name(&self) -> OsString
fn metadata<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<<MemFloppyDisk as FloppyDisk<'_>>::Metadata>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn file_type<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<<MemFloppyDisk as FloppyDisk<'_>>::FileType>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ino(&self) -> u64
Source§impl<'a> FloppyDisk<'a> for MemFloppyDisk
impl<'a> FloppyDisk<'a> for MemFloppyDisk
type DirBuilder = MemDirBuilder<'a>
type DirEntry = MemDirEntry
type File = MemFile
type FileType = MemFileType
type Metadata = MemMetadata
type OpenOptions = MemOpenOptions
type Permissions = MemPermissions
type ReadDir = MemReadDir
fn canonicalize<'life0, 'async_trait, P>( &'life0 self, path: P, ) -> Pin<Box<dyn Future<Output = Result<PathBuf>> + Send + 'async_trait>>
fn copy<'life0, 'async_trait, P>( &'life0 self, from: P, to: P, ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
fn create_dir<'life0, 'async_trait, P>( &'life0 self, path: P, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
fn create_dir_all<'life0, 'async_trait, P>( &'life0 self, path: P, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
fn hard_link<'life0, 'async_trait, P>( &'life0 self, _src: P, _dst: P, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
fn metadata<'life0, 'async_trait, P>( &'life0 self, path: P, ) -> Pin<Box<dyn Future<Output = Result<Self::Metadata>> + Send + 'async_trait>>
fn read<'life0, 'async_trait, P>( &'life0 self, path: P, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>
fn read_dir<'life0, 'async_trait, P>( &'life0 self, path: P, ) -> Pin<Box<dyn Future<Output = Result<Self::ReadDir>> + Send + 'async_trait>>
fn read_link<'life0, 'async_trait, P>( &'life0 self, path: P, ) -> Pin<Box<dyn Future<Output = Result<PathBuf>> + Send + 'async_trait>>
fn read_to_string<'life0, 'async_trait, P>( &'life0 self, path: P, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
fn remove_dir<'life0, 'async_trait, P>( &'life0 self, path: P, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
fn remove_dir_all<'life0, 'async_trait, P>( &'life0 self, path: P, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
fn remove_file<'life0, 'async_trait, P>( &'life0 self, path: P, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
fn rename<'life0, 'async_trait, P>( &'life0 self, from: P, to: P, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
fn set_permissions<'life0, 'async_trait, P>( &'life0 self, path: P, perm: Self::Permissions, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
fn symlink<'life0, 'async_trait, P>( &'life0 self, src: P, dst: P, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
fn symlink_metadata<'life0, 'async_trait, P>( &'life0 self, path: P, ) -> Pin<Box<dyn Future<Output = Result<Self::Metadata>> + Send + 'async_trait>>
fn try_exists<'life0, 'async_trait, P>( &'life0 self, path: P, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
fn write<'life0, 'async_trait, P>( &'life0 self, path: P, contents: impl 'async_trait + AsRef<[u8]> + Send, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
fn new_dir_builder(&'a self) -> Self::DirBuilder
Source§impl FloppyDiskUnixExt for MemFloppyDisk
impl FloppyDiskUnixExt for MemFloppyDisk
Source§impl<'a> FloppyFile<'a, MemFloppyDisk> for MemFile
impl<'a> FloppyFile<'a, MemFloppyDisk> for MemFile
fn sync_all<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn sync_data<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_len<'life0, 'async_trait>(
&'life0 mut self,
size: u64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn metadata<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<<MemFloppyDisk as FloppyDisk<'_>>::Metadata>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn try_clone<'async_trait>(
&'a self,
) -> Pin<Box<dyn Future<Output = Result<Box<Self>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
fn set_permissions<'life0, 'async_trait>(
&'life0 self,
perm: <MemFloppyDisk as FloppyDisk<'_>>::Permissions,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn permissions<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<<MemFloppyDisk as FloppyDisk<'_>>::Permissions>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl<'a> FloppyMetadata<'a, MemFloppyDisk> for MemMetadata
impl<'a> FloppyMetadata<'a, MemFloppyDisk> for MemMetadata
fn file_type(&self) -> <MemFloppyDisk as FloppyDisk<'_>>::FileType
fn is_dir(&self) -> bool
fn is_file(&self) -> bool
fn is_symlink(&self) -> bool
fn len(&self) -> u64
fn permissions(&self) -> <MemFloppyDisk as FloppyDisk<'_>>::Permissions
fn modified(&self) -> Result<SystemTime>
fn accessed(&self) -> Result<SystemTime>
fn created(&self) -> Result<SystemTime>
Source§impl<'a> FloppyOpenOptions<'a, MemFloppyDisk> for MemOpenOptions
impl<'a> FloppyOpenOptions<'a, MemFloppyDisk> for MemOpenOptions
fn new() -> Self
fn read(self, read: bool) -> Self
fn write(self, write: bool) -> Self
fn append(self, append: bool) -> Self
fn truncate(self, truncate: bool) -> Self
fn create(self, create: bool) -> Self
fn create_new(self, create_new: bool) -> Self
fn open<'life0, 'async_trait, P>( &'life0 self, disk: &'a MemFloppyDisk, path: P, ) -> Pin<Box<dyn Future<Output = Result<<MemFloppyDisk as FloppyDisk<'a>>::File>> + Send + 'async_trait>>
Source§impl<'a> FloppyReadDir<'a, MemFloppyDisk> for MemReadDir
impl<'a> FloppyReadDir<'a, MemFloppyDisk> for MemReadDir
fn next_entry<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Option<<MemFloppyDisk as FloppyDisk<'_>>::DirEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for MemFloppyDisk
impl !RefUnwindSafe for MemFloppyDisk
impl Send for MemFloppyDisk
impl Sync for MemFloppyDisk
impl Unpin for MemFloppyDisk
impl !UnwindSafe for MemFloppyDisk
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