Struct floppy_disk::mem::MemFloppyDisk
source · 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>>where P: 'async_trait + AsRef<Path> + Send, Self: 'async_trait, 'life0: 'async_trait,
fn copy<'life0, 'async_trait, P>( &'life0 self, from: P, to: P ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>where P: 'async_trait + AsRef<Path> + Send, Self: 'async_trait, 'life0: 'async_trait,
fn create_dir<'life0, 'async_trait, P>( &'life0 self, path: P ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where P: 'async_trait + AsRef<Path> + Send, Self: 'async_trait, 'life0: 'async_trait,
fn create_dir_all<'life0, 'async_trait, P>( &'life0 self, path: P ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where P: 'async_trait + AsRef<Path> + Send, Self: 'async_trait, 'life0: 'async_trait,
fn hard_link<'life0, 'async_trait, P>( &'life0 self, _src: P, _dst: P ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where P: 'async_trait + AsRef<Path> + Send, Self: 'async_trait, 'life0: 'async_trait,
fn metadata<'life0, 'async_trait, P>( &'life0 self, path: P ) -> Pin<Box<dyn Future<Output = Result<Self::Metadata>> + Send + 'async_trait>>where P: 'async_trait + AsRef<Path> + Send, Self: 'async_trait, 'life0: 'async_trait,
fn read<'life0, 'async_trait, P>( &'life0 self, path: P ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where P: 'async_trait + AsRef<Path> + Send, Self: 'async_trait, 'life0: 'async_trait,
fn read_dir<'life0, 'async_trait, P>( &'life0 self, path: P ) -> Pin<Box<dyn Future<Output = Result<Self::ReadDir>> + Send + 'async_trait>>where P: 'async_trait + AsRef<Path> + Send, Self: 'async_trait, 'life0: 'async_trait,
fn read_link<'life0, 'async_trait, P>( &'life0 self, path: P ) -> Pin<Box<dyn Future<Output = Result<PathBuf>> + Send + 'async_trait>>where P: 'async_trait + AsRef<Path> + Send, Self: 'async_trait, 'life0: 'async_trait,
fn read_to_string<'life0, 'async_trait, P>( &'life0 self, path: P ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where P: 'async_trait + AsRef<Path> + Send, Self: 'async_trait, 'life0: 'async_trait,
fn remove_dir<'life0, 'async_trait, P>( &'life0 self, path: P ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where P: 'async_trait + AsRef<Path> + Send, Self: 'async_trait, 'life0: 'async_trait,
fn remove_dir_all<'life0, 'async_trait, P>( &'life0 self, path: P ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where P: 'async_trait + AsRef<Path> + Send, Self: 'async_trait, 'life0: 'async_trait,
fn remove_file<'life0, 'async_trait, P>( &'life0 self, path: P ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where P: 'async_trait + AsRef<Path> + Send, Self: 'async_trait, 'life0: 'async_trait,
fn rename<'life0, 'async_trait, P>( &'life0 self, from: P, to: P ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where P: 'async_trait + AsRef<Path> + Send, Self: 'async_trait, 'life0: 'async_trait,
fn set_permissions<'life0, 'async_trait, P>( &'life0 mut self, path: P, perm: Self::Permissions ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where P: 'async_trait + AsRef<Path> + Send, Self: 'async_trait, 'life0: 'async_trait,
fn symlink<'life0, 'async_trait, P>( &'life0 self, src: P, dst: P ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where P: 'async_trait + AsRef<Path> + Send, Self: 'async_trait, 'life0: 'async_trait,
fn symlink_metadata<'life0, 'async_trait, P>( &'life0 self, path: P ) -> Pin<Box<dyn Future<Output = Result<Self::Metadata>> + Send + 'async_trait>>where P: 'async_trait + AsRef<Path> + Send, Self: 'async_trait, 'life0: 'async_trait,
fn try_exists<'life0, 'async_trait, P>( &'life0 self, path: P ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where P: 'async_trait + AsRef<Path> + Send, Self: 'async_trait, 'life0: '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>>where P: 'async_trait + AsRef<Path> + Send, Self: 'async_trait, 'life0: '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<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = <MemFloppyDisk as FloppyDisk<'_>>::FileType> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn is_dir<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn is_file<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn is_symlink<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn len<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = u64> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn permissions<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = <MemFloppyDisk as FloppyDisk<'_>>::Permissions> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn modified<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<SystemTime>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn accessed<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<SystemTime>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn created<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<SystemTime>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
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 mut MemFloppyDisk, path: P ) -> Pin<Box<dyn Future<Output = Result<<MemFloppyDisk as FloppyDisk<'a>>::File>> + Send + 'async_trait>>where P: 'async_trait + AsRef<Path> + Send, Self: 'async_trait, 'a: 'async_trait, 'life0: '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 !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