pub trait FloppyOpenOptions: Debug {
type File: FloppyFile;
// Required methods
fn read(&mut self, read: bool) -> &mut Self;
fn write(&mut self, write: bool) -> &mut Self;
fn append(&mut self, append: bool) -> &mut Self;
fn truncate(&mut self, truncate: bool) -> &mut Self;
fn create(&mut self, create: bool) -> &mut Self;
fn create_new(&mut self, create_new: bool) -> &mut Self;
fn open<'life0, 'async_trait, P>(
&'life0 self,
path: P
) -> Pin<Box<dyn Future<Output = Result<Self::File>> + Send + 'async_trait>>
where P: 'async_trait + AsRef<Path> + Send,
Self: 'async_trait,
'life0: 'async_trait;
}