pub trait FileHandle: Debug + Sealed {
type Error: Debug;
type WritableFileStreamT: WritableFileStream<Error = Self::Error>;
// Required methods
fn create_writable_with_options(
&mut self,
options: &CreateWritableOptions,
) -> impl Future<Output = Result<Self::WritableFileStreamT, Self::Error>>;
fn read(&self) -> impl Future<Output = Result<Vec<u8>, Self::Error>>;
fn read_range<R: RangeBounds<usize> + Send>(
&self,
range: R,
) -> impl Future<Output = Result<Vec<u8>, Self::Error>>;
fn size(&self) -> impl Future<Output = Result<usize, Self::Error>>;
}Required Associated Types§
type Error: Debug
type WritableFileStreamT: WritableFileStream<Error = Self::Error>
Required Methods§
fn create_writable_with_options( &mut self, options: &CreateWritableOptions, ) -> impl Future<Output = Result<Self::WritableFileStreamT, Self::Error>>
fn read(&self) -> impl Future<Output = Result<Vec<u8>, Self::Error>>
fn read_range<R: RangeBounds<usize> + Send>( &self, range: R, ) -> impl Future<Output = Result<Vec<u8>, Self::Error>>
fn size(&self) -> impl Future<Output = Result<usize, Self::Error>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".