Enum w5500_ll::SpeedStatus
source · #[repr(u8)]pub enum SpeedStatus {
Mbps10,
Mbps100,
}
Expand description
PHY speed status.
This is used by PhyCfg::spd
method for the phycfgr
register.
Variants§
Trait Implementations§
source§impl Clone for SpeedStatus
impl Clone for SpeedStatus
source§fn clone(&self) -> SpeedStatus
fn clone(&self) -> SpeedStatus
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 SpeedStatus
impl Debug for SpeedStatus
source§impl Default for SpeedStatus
impl Default for SpeedStatus
source§fn default() -> SpeedStatus
fn default() -> SpeedStatus
Returns the “default value” for a type. Read more
source§impl Format for SpeedStatus
impl Format for SpeedStatus
source§impl From<SpeedStatus> for u8
impl From<SpeedStatus> for u8
source§fn from(val: SpeedStatus) -> u8
fn from(val: SpeedStatus) -> u8
Converts to this type from the input type.
source§impl From<bool> for SpeedStatus
impl From<bool> for SpeedStatus
source§fn from(val: bool) -> SpeedStatus
fn from(val: bool) -> SpeedStatus
Converts to this type from the input type.
source§impl Hash for SpeedStatus
impl Hash for SpeedStatus
source§impl Ord for SpeedStatus
impl Ord for SpeedStatus
source§fn cmp(&self, other: &SpeedStatus) -> Ordering
fn cmp(&self, other: &SpeedStatus) -> 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<SpeedStatus> for SpeedStatus
impl PartialEq<SpeedStatus> for SpeedStatus
source§fn eq(&self, other: &SpeedStatus) -> bool
fn eq(&self, other: &SpeedStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SpeedStatus> for SpeedStatus
impl PartialOrd<SpeedStatus> for SpeedStatus
source§fn partial_cmp(&self, other: &SpeedStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &SpeedStatus) -> 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 SpeedStatus
impl Eq for SpeedStatus
impl StructuralEq for SpeedStatus
impl StructuralPartialEq for SpeedStatus
Auto Trait Implementations§
impl RefUnwindSafe for SpeedStatus
impl Send for SpeedStatus
impl Sync for SpeedStatus
impl Unpin for SpeedStatus
impl UnwindSafe for SpeedStatus
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