pub trait BytesFileOps:
Send
+ Sync
+ AsAny
+ 'static {
// Provided methods
fn write(
&self,
_current_task: &CurrentTask,
_data: Vec<u8>,
) -> Result<(), Errno> { ... }
fn read(&self, _current_task: &CurrentTask) -> Result<Cow<'_, [u8]>, Errno> { ... }
fn open(
&self,
_file: &FileObject,
_current_task: &CurrentTask,
) -> Result<(), Errno> { ... }
}Provided Methods§
fn write( &self, _current_task: &CurrentTask, _data: Vec<u8>, ) -> Result<(), Errno>
fn read(&self, _current_task: &CurrentTask) -> Result<Cow<'_, [u8]>, Errno>
fn open( &self, _file: &FileObject, _current_task: &CurrentTask, ) -> Result<(), Errno>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".