pub struct SerialStatus(/* private fields */);Expand description
The current status of the serial port.
Implementations§
Source§impl SerialStatus
impl SerialStatus
Sourcepub fn is_rx_ready(self) -> bool
pub fn is_rx_ready(self) -> bool
Returns true if the serial port is ready to receive.
Sourcepub fn has_rx_error(self) -> bool
pub fn has_rx_error(self) -> bool
Returns true if a receive error has occurred.
Sourcepub fn is_tx_full(self) -> bool
pub fn is_tx_full(self) -> bool
Returns true if the TX buffer is full.
No more bytes can be queued in this state.
Sourcepub fn rx_interrupt_enabled(self) -> bool
pub fn rx_interrupt_enabled(self) -> bool
Returns true if this port is configured to raise an interrupt when there is data to read.
Trait Implementations§
Source§impl Clone for SerialStatus
impl Clone for SerialStatus
impl Copy for SerialStatus
Auto Trait Implementations§
impl Freeze for SerialStatus
impl RefUnwindSafe for SerialStatus
impl Send for SerialStatus
impl Sync for SerialStatus
impl Unpin for SerialStatus
impl UnsafeUnpin for SerialStatus
impl UnwindSafe for SerialStatus
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