pub trait FileWriting: FileOperation {
type Writer<'scheduler>: FileWriter + 'scheduler
where Self: 'scheduler;
// Required method
fn file_writer(&self, file: &Self::File) -> Result<Self::Writer<'_>>;
}Expand description
Construct a sequential file writer bound to this scheduler. Backends select the handle representation; protocols need no monitor or raw dispatch capabilities.
Required Associated Types§
type Writer<'scheduler>: FileWriter + 'scheduler where Self: 'scheduler
Required Methods§
Sourcefn file_writer(&self, file: &Self::File) -> Result<Self::Writer<'_>>
fn file_writer(&self, file: &Self::File) -> Result<Self::Writer<'_>>
Retain the file and reusable backend state without submitting I/O. The file reference need not live as long as the returned handle. Cancellation remains an operation argument.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".