pub struct Device_type(/* private fields */);
Implementations§
Source§impl Device_type
impl Device_type
pub fn New(Device: Arc<dyn Device_trait>) -> Self
pub fn Read(&self, Buffer: &mut [u8]) -> Result_type<Size_type>
pub fn Read_line(&self, Buffer: &mut String) -> Result_type<Size_type>
pub fn Write(&self, Buffer: &[u8]) -> Result_type<Size_type>
pub fn Get_size(&self) -> Result_type<Size_type>
pub fn Set_position(&self, Position: &Position_type) -> Result_type<Size_type>
pub fn Flush(&self) -> Result_type<()>
pub fn Erase(&self) -> Result_type<()>
pub fn Get_block_size(&self) -> Result_type<usize>
pub fn Is_a_terminal(&self) -> bool
pub fn Is_a_block_device(&self) -> bool
pub fn Dump_device(&self) -> Result_type<Vec<u8>>
Trait Implementations§
Source§impl Clone for Device_type
impl Clone for Device_type
Source§fn clone(&self) -> Device_type
fn clone(&self) -> Device_type
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for Device_type
impl !RefUnwindSafe for Device_type
impl Send for Device_type
impl Sync for Device_type
impl Unpin for Device_type
impl !UnwindSafe for Device_type
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