pub struct InterruptResultMaxSizeOrTimeout {
pub errors: Option<UartErrors>,
pub bytes_read: usize,
/* private fields */
}Expand description
This struct is used to return the default IRQ handler result to the user
Fields§
§errors: Option<UartErrors>§bytes_read: usizeImplementations§
Source§impl InterruptResultMaxSizeOrTimeout
impl InterruptResultMaxSizeOrTimeout
pub fn has_errors(&self) -> bool
pub fn overflow_error(&self) -> bool
pub fn framing_error(&self) -> bool
pub fn parity_error(&self) -> bool
pub fn timeout(&self) -> bool
pub fn complete(&self) -> bool
Trait Implementations§
Source§impl Default for InterruptResultMaxSizeOrTimeout
impl Default for InterruptResultMaxSizeOrTimeout
Source§fn default() -> InterruptResultMaxSizeOrTimeout
fn default() -> InterruptResultMaxSizeOrTimeout
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InterruptResultMaxSizeOrTimeout
impl RefUnwindSafe for InterruptResultMaxSizeOrTimeout
impl Send for InterruptResultMaxSizeOrTimeout
impl Sync for InterruptResultMaxSizeOrTimeout
impl Unpin for InterruptResultMaxSizeOrTimeout
impl UnwindSafe for InterruptResultMaxSizeOrTimeout
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