Skip to main content

FileWriting

Trait FileWriting 

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

Source

type Writer<'scheduler>: FileWriter + 'scheduler where Self: 'scheduler

The scheduler-bound writer returned by file_writer.

Required Methods§

Source

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

Implementors§