pub enum PortSpeedSetting {
Auto,
Mbps10,
Mbps100,
Mbps1000,
Mbps2500,
Mbps5000,
Mbps10000,
}Expand description
Configured auto-negotiation / link speed for a port.
Auto means negotiate; other variants pin the link to a fixed speed.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PortSpeedSetting
impl Clone for PortSpeedSetting
Source§fn clone(&self) -> PortSpeedSetting
fn clone(&self) -> PortSpeedSetting
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 moreSource§impl Debug for PortSpeedSetting
impl Debug for PortSpeedSetting
Source§impl<'de> Deserialize<'de> for PortSpeedSetting
impl<'de> Deserialize<'de> for PortSpeedSetting
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PortSpeedSetting
impl PartialEq for PortSpeedSetting
Source§fn eq(&self, other: &PortSpeedSetting) -> bool
fn eq(&self, other: &PortSpeedSetting) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PortSpeedSetting
impl Serialize for PortSpeedSetting
impl Copy for PortSpeedSetting
impl Eq for PortSpeedSetting
impl StructuralPartialEq for PortSpeedSetting
Auto Trait Implementations§
impl Freeze for PortSpeedSetting
impl RefUnwindSafe for PortSpeedSetting
impl Send for PortSpeedSetting
impl Sync for PortSpeedSetting
impl Unpin for PortSpeedSetting
impl UnsafeUnpin for PortSpeedSetting
impl UnwindSafe for PortSpeedSetting
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