ExecutableWrapper

Struct ExecutableWrapper 

Source
pub struct ExecutableWrapper<T: ExecutableTrait>(/* private fields */);

Implementations§

Source§

impl<T: ExecutableTrait> ExecutableWrapper<T>

Source

pub fn new(executable: T) -> Self

Trait Implementations§

Source§

impl<T: ExecutableTrait> DirectBaseOperations for ExecutableWrapper<T>

Source§

fn read(&self, _buffer: &mut [u8], _absolute_position: Size) -> Result<usize>

Source§

fn write(&self, _buffer: &[u8], _absolute_position: Size) -> Result<usize>

Source§

fn control( &self, command: ControlCommandIdentifier, _: &AnyByLayout, output: &mut AnyByLayout, ) -> Result<()>

Source§

fn open(&self) -> Result<(), Error>

Source§

fn close(&self) -> Result<(), Error>

Source§

fn read_until( &self, buffer: &mut [u8], absolute_position: u64, delimiter: &[u8], ) -> Result<usize, Error>

Source§

fn write_pattern( &self, pattern: &[u8], count: usize, absolute_position: u64, ) -> Result<usize, Error>

Source§

fn write_vectored( &self, buffers: &[&[u8]], absolute_position: u64, ) -> Result<usize, Error>

Source§

fn flush(&self) -> Result<(), Error>

Source§

fn set_position( &self, _current_position: u64, _position: &Position, ) -> Result<u64, Error>

Source§

impl<T: ExecutableTrait> MountOperations for ExecutableWrapper<T>

Source§

fn mount(&self) -> Result<(), Error>

Source§

fn unmount(&self) -> Result<(), Error>

Source§

impl<T: ExecutableTrait> DirectCharacterDevice for ExecutableWrapper<T>

Auto Trait Implementations§

§

impl<T> Freeze for ExecutableWrapper<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for ExecutableWrapper<T>
where T: RefUnwindSafe,

§

impl<T> Send for ExecutableWrapper<T>

§

impl<T> Sync for ExecutableWrapper<T>

§

impl<T> Unpin for ExecutableWrapper<T>
where T: Unpin,

§

impl<T> UnwindSafe for ExecutableWrapper<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> BaseOperations for T

Source§

fn open(&self, _: &mut Context) -> Result<(), Error>

Source§

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>

Write data to the device at the current position. Read more
Source§

fn write_pattern( &self, _: &mut Context, pattern: &[u8], count: usize, absolute_position: u64, ) -> Result<usize, Error>

Source§

fn write_vectored( &self, _context: &mut Context, buffers: &[&[u8]], absolute_position: u64, ) -> Result<usize, Error>

Source§

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>

Set the current position cursor for read/write operations. Read more
Source§

fn control( &self, _: &mut Context, command: ControlCommandIdentifier, input: &AnyByLayout, output: &mut AnyByLayout, ) -> Result<(), Error>

Source§

fn clone_context(&self, _context: &Context) -> Result<Context, Error>

Source§

fn close(&self, _context: &mut Context) -> Result<(), Error>

Source§

fn read_until( &self, context: &mut Context, buffer: &mut [u8], absolute_position: u64, delimiter: &[u8], ) -> Result<usize, Error>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> CharacterDevice for T