pub struct MemFloppyDisk { /* private fields */ }

Implementations§

source§

impl MemFloppyDisk

source

pub fn new() -> Self

Trait Implementations§

source§

impl Debug for MemFloppyDisk

source§

fn fmt(&self, __f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> FloppyDirEntry<'a, MemFloppyDisk> for MemDirEntry

source§

fn path(&self) -> PathBuf

source§

fn file_name(&self) -> OsString

source§

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,

source§

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,

source§

fn ino(&self) -> u64

source§

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

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

fn new_dir_builder(&'a self) -> Self::DirBuilder

source§

impl FloppyDiskUnixExt for MemFloppyDisk

source§

fn chown<'life0, 'async_trait, P>( &'life0 self, path: P, uid: u32, gid: u32 ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where P: 'async_trait + Into<PathBuf> + Send, Self: 'async_trait, 'life0: 'async_trait,

source§

impl<'a> FloppyFile<'a, MemFloppyDisk> for MemFile

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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,

source§

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

source§

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,

source§

fn is_dir<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn is_file<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn len<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = u64> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

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,

source§

fn modified<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<SystemTime>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn accessed<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<SystemTime>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

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

source§

fn new() -> Self

source§

fn read(self, read: bool) -> Self

source§

fn write(self, write: bool) -> Self

source§

fn append(self, append: bool) -> Self

source§

fn truncate(self, truncate: bool) -> Self

source§

fn create(self, create: bool) -> Self

source§

fn create_new(self, create_new: bool) -> Self

source§

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

source§

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§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.