pub struct LoopbackControllerDevice;Trait Implementations§
Source§impl DirectBaseOperations for LoopbackControllerDevice
impl DirectBaseOperations for LoopbackControllerDevice
fn read(&self, _: &mut [u8], _: Size) -> Result<usize>
fn write(&self, _: &[u8], _: Size) -> Result<usize>
fn control( &self, command: ControlCommandIdentifier, _: &AnyByLayout, output: &mut AnyByLayout, ) -> Result<()>
fn open(&self) -> Result<(), Error>
fn close(&self) -> Result<(), Error>
fn read_until( &self, buffer: &mut [u8], absolute_position: u64, delimiter: &[u8], ) -> Result<usize, Error>
fn write_pattern( &self, pattern: &[u8], count: usize, absolute_position: u64, ) -> Result<usize, Error>
fn write_vectored( &self, buffers: &[&[u8]], absolute_position: u64, ) -> Result<usize, Error>
fn flush(&self) -> Result<(), Error>
fn set_position( &self, _current_position: u64, _position: &Position, ) -> Result<u64, Error>
impl DirectCharacterDevice for LoopbackControllerDevice
Auto Trait Implementations§
impl Freeze for LoopbackControllerDevice
impl RefUnwindSafe for LoopbackControllerDevice
impl Send for LoopbackControllerDevice
impl Sync for LoopbackControllerDevice
impl Unpin for LoopbackControllerDevice
impl UnwindSafe for LoopbackControllerDevice
Blanket Implementations§
Source§impl<T> BaseOperations for T
impl<T> BaseOperations for T
fn open(&self, _: &mut Context) -> Result<(), Error>
Source§fn read(
&self,
_: &mut Context,
buffer: &mut [u8],
absolute_position: u64,
) -> Result<usize, Error>
fn read( &self, _: &mut Context, buffer: &mut [u8], absolute_position: u64, ) -> Result<usize, Error>
Read data from the device at the current position. Read more
Source§fn write(
&self,
_: &mut Context,
buffer: &[u8],
absolute_position: u64,
) -> Result<usize, Error>
fn write( &self, _: &mut Context, buffer: &[u8], absolute_position: u64, ) -> Result<usize, Error>
Write data to the device at the current position. Read more
fn write_pattern( &self, _: &mut Context, pattern: &[u8], count: usize, absolute_position: u64, ) -> Result<usize, Error>
fn write_vectored( &self, _context: &mut Context, buffers: &[&[u8]], absolute_position: u64, ) -> Result<usize, Error>
Source§fn flush(&self, _: &mut Context) -> Result<(), Error>
fn flush(&self, _: &mut Context) -> Result<(), Error>
Flush any buffered data to the underlying storage. Read more
Source§fn set_position(
&self,
_context: &mut Context,
current_position: u64,
position: &Position,
) -> Result<u64, Error>
fn set_position( &self, _context: &mut Context, current_position: u64, position: &Position, ) -> Result<u64, Error>
Set the current position cursor for read/write operations. Read more
fn control( &self, _: &mut Context, command: ControlCommandIdentifier, input: &AnyByLayout, output: &mut AnyByLayout, ) -> Result<(), Error>
fn clone_context(&self, _context: &Context) -> Result<Context, Error>
fn close(&self, _context: &mut Context) -> Result<(), Error>
fn read_until( &self, context: &mut Context, buffer: &mut [u8], absolute_position: u64, delimiter: &[u8], ) -> Result<usize, Error>
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more