pub trait VowFileAsync: MaybeSend {
// Required methods
fn open(path: &Path) -> impl IoFut<Self>
where Self: Sized;
fn read(&mut self, buf: Vec<u8>) -> impl BufFut;
fn write(&mut self, buf: Vec<u8>) -> impl BufFut;
fn flush(&mut self) -> impl IoFut<()>;
fn set_len(&mut self, len: u64) -> impl IoFut<()>;
}Expand description
Low-level trait for asynchronous file operations
Required Methods§
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.
Implementations on Foreign Types§
Source§impl VowFileAsync for File
Available on crate feature backend-async-std only.
impl VowFileAsync for File
Available on crate feature
backend-async-std only.Source§impl VowFileAsync for File
Available on crate feature backend-compio only.
impl VowFileAsync for File
Available on crate feature
backend-compio only.Source§impl VowFileAsync for File
Available on crate feature backend-tokio only.
impl VowFileAsync for File
Available on crate feature
backend-tokio only.