pub struct Memory_device_type<const Block_size: usize>(/* private fields */);
Implementations§
Trait Implementations§
Source§impl<const Block_size: usize> Device_trait for Memory_device_type<Block_size>
impl<const Block_size: usize> Device_trait for Memory_device_type<Block_size>
Source§fn Get_size(&self) -> Result_type<Size_type>
fn Get_size(&self) -> Result_type<Size_type>
Get the size of maximum data that can be read or written.
Source§fn Set_position(&self, Position: &Position_type) -> Result_type<Size_type>
fn Set_position(&self, Position: &Position_type) -> Result_type<Size_type>
Set the position of the device.
Source§fn Flush(&self) -> Result_type<()>
fn Flush(&self) -> Result_type<()>
Flush the device (write any buffered data).
Source§fn Get_block_size(&self) -> Result_type<usize>
fn Get_block_size(&self) -> Result_type<usize>
Get the device block size.
fn Dump_device(&self) -> Result_type<Vec<u8>>
fn Read_line(&self, Buffer: &mut String) -> Result_type<Size_type>
fn Is_a_terminal(&self) -> bool
fn Is_a_block_device(&self) -> bool
Auto Trait Implementations§
impl<const Block_size: usize> !Freeze for Memory_device_type<Block_size>
impl<const Block_size: usize> RefUnwindSafe for Memory_device_type<Block_size>
impl<const Block_size: usize> Send for Memory_device_type<Block_size>
impl<const Block_size: usize> Sync for Memory_device_type<Block_size>
impl<const Block_size: usize> Unpin for Memory_device_type<Block_size>
impl<const Block_size: usize> UnwindSafe for Memory_device_type<Block_size>
Blanket Implementations§
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