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