FloppyOpenOptions

Trait FloppyOpenOptions 

Source
pub trait FloppyOpenOptions<'a, Disk: FloppyDisk<'a>>:
    Debug
    + Unpin
    + Send {
    // Required methods
    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 Disk,
        path: P,
    ) -> Pin<Box<dyn Future<Output = Result<Disk::File>> + Send + 'async_trait>>
       where P: 'async_trait + AsRef<Path> + Send,
             Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

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 Disk, path: P, ) -> Pin<Box<dyn Future<Output = Result<Disk::File>> + Send + 'async_trait>>
where P: 'async_trait + AsRef<Path> + Send, Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§