pub struct PortEntry {
pub port_idx: Option<u32>,
pub name: Option<String>,
pub media: Option<String>,
pub up: bool,
pub speed: Option<u32>,
pub full_duplex: bool,
pub poe_enable: bool,
pub poe_power: Option<f64>,
pub port_poe: bool,
pub tx_bytes: Option<u64>,
pub rx_bytes: Option<u64>,
}Fields§
§port_idx: Option<u32>§name: Option<String>§media: Option<String>§up: bool§speed: Option<u32>§full_duplex: bool§poe_enable: bool§poe_power: Option<f64>§port_poe: bool§tx_bytes: Option<u64>§rx_bytes: Option<u64>Trait Implementations§
Source§impl<'de> Deserialize<'de> for PortEntry
impl<'de> Deserialize<'de> for PortEntry
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
Auto Trait Implementations§
impl Freeze for PortEntry
impl RefUnwindSafe for PortEntry
impl Send for PortEntry
impl Sync for PortEntry
impl Unpin for PortEntry
impl UnsafeUnpin for PortEntry
impl UnwindSafe for PortEntry
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more