Struct linux_embedded_hal::SerialError
source · pub struct SerialError { /* private fields */ }
Expand description
Error type wrapping io::ErrorKind to implement [embedded_hal::serial::ErrorKind]
Implementations§
source§impl SerialError
impl SerialError
sourcepub fn inner(&self) -> &IoErrorKind
pub fn inner(&self) -> &IoErrorKind
Fetch inner (concrete) IoErrorKind
Trait Implementations§
source§impl Clone for SerialError
impl Clone for SerialError
source§fn clone(&self) -> SerialError
fn clone(&self) -> SerialError
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 moresource§impl Debug for SerialError
impl Debug for SerialError
source§impl Display for SerialError
impl Display for SerialError
source§impl Error for SerialError
impl Error for SerialError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl Error for SerialError
impl Error for SerialError
source§impl Hash for SerialError
impl Hash for SerialError
source§impl Ord for SerialError
impl Ord for SerialError
source§fn cmp(&self, other: &SerialError) -> Ordering
fn cmp(&self, other: &SerialError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SerialError
impl PartialEq for SerialError
source§fn eq(&self, other: &SerialError) -> bool
fn eq(&self, other: &SerialError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SerialError
impl PartialOrd for SerialError
source§fn partial_cmp(&self, other: &SerialError) -> Option<Ordering>
fn partial_cmp(&self, other: &SerialError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SerialError
impl Eq for SerialError
impl StructuralEq for SerialError
impl StructuralPartialEq for SerialError
Auto Trait Implementations§
impl RefUnwindSafe for SerialError
impl Send for SerialError
impl Sync for SerialError
impl Unpin for SerialError
impl UnwindSafe for SerialError
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