pub trait WriteAt {
type Error: Error + MaybeSend + MaybeSync + 'static;
// Required methods
fn write_at(
&self,
offset: u64,
buf: &[u8],
) -> impl Future<Output = Result<(), Self::Error>> + MaybeSend;
fn set_len(
&self,
len: u64,
) -> impl Future<Output = Result<(), Self::Error>> + MaybeSend;
// Provided method
fn flush(&self) -> impl Future<Output = Result<(), Self::Error>> + MaybeSend { ... }
}Expand description
Async random-access write sink. Each leaf body is written at its absolute
offset; when every offset is written the sink is whole. Not Send-bound so
a single-threaded browser writable can implement it.
Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".