pub struct SerialDevice { /* private fields */ }Implementations§
Source§impl SerialDevice
impl SerialDevice
Trait Implementations§
Source§impl CharDevice for SerialDevice
impl CharDevice for SerialDevice
fn read(&self, _buf: &mut [u8]) -> Result<usize, DeviceError>
fn write(&self, buf: &[u8]) -> Result<usize, DeviceError>
fn peek(&self, buf: &mut [u8]) -> Result<usize, DeviceError>
fn has_data(&self) -> bool
fn has_space(&self) -> bool
fn set_nonblocking(&self, nonblocking: bool) -> Result<(), DeviceError>
fn name(&self) -> &str
fn device_type(&self) -> DeviceType
fn open(&self) -> Result<(), DeviceError>
fn close(&self) -> Result<(), DeviceError>
fn ioctl(&self, cmd: u64, _arg: u64) -> Result<u64, DeviceError>
fn sync(&self) -> Result<(), DeviceError>
fn is_compatible(&self, _scan_info: &ScanInfo) -> bool
Auto Trait Implementations§
impl !Freeze for SerialDevice
impl !RefUnwindSafe for SerialDevice
impl Send for SerialDevice
impl Sync for SerialDevice
impl Unpin for SerialDevice
impl UnwindSafe for SerialDevice
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