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§
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>>
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.