Enum Errorsource
#[repr(u8)]pub enum Errorsource {
Slave = 0,
Mpc = 1,
}Variants§
Implementations§
§impl Errorsource
impl Errorsource
pub const fn from_bits(val: u8) -> Errorsource
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for Errorsource
impl Clone for Errorsource
§fn clone(&self) -> Errorsource
fn clone(&self) -> Errorsource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Errorsource
§impl Debug for Errorsource
impl Debug for Errorsource
impl Eq for Errorsource
§impl From<u8> for Errorsource
impl From<u8> for Errorsource
§fn from(val: u8) -> Errorsource
fn from(val: u8) -> Errorsource
Converts to this type from the input type.
§impl Ord for Errorsource
impl Ord for Errorsource
§fn cmp(&self, other: &Errorsource) -> Ordering
fn cmp(&self, other: &Errorsource) -> Ordering
1.21.0 (const: unstable) · 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
§impl PartialEq for Errorsource
impl PartialEq for Errorsource
§impl PartialOrd for Errorsource
impl PartialOrd for Errorsource
impl StructuralPartialEq for Errorsource
Auto Trait Implementations§
impl Freeze for Errorsource
impl RefUnwindSafe for Errorsource
impl Send for Errorsource
impl Sync for Errorsource
impl Unpin for Errorsource
impl UnsafeUnpin for Errorsource
impl UnwindSafe for Errorsource
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