pub struct PortStatus {
pub flags: StatusFlags,
pub mtu: u32,
}
Expand description
Dynamic port information with all required fields.
Fields§
§flags: StatusFlags
Port status flags.
mtu: u32
Maximum transmit unit for this port, in bytes.
The reported MTU is the size of an entire frame, including any header and trailer bytes for whatever protocols this port supports.
Trait Implementations§
Source§impl Clone for PortStatus
impl Clone for PortStatus
Source§fn clone(&self) -> PortStatus
fn clone(&self) -> PortStatus
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 PortStatus
impl Debug for PortStatus
Source§impl From<PortStatus> for PortStatus
impl From<PortStatus> for PortStatus
Source§fn from(src: PortStatus) -> PortStatus
fn from(src: PortStatus) -> PortStatus
Converts to this type from the input type.
Source§impl PartialEq for PortStatus
impl PartialEq for PortStatus
Source§impl TryFrom<PortStatus> for PortStatus
impl TryFrom<PortStatus> for PortStatus
Source§type Error = PortStatusValidationError
type Error = PortStatusValidationError
The type returned in the event of a conversion error.
impl Eq for PortStatus
impl StructuralPartialEq for PortStatus
Auto Trait Implementations§
impl Freeze for PortStatus
impl RefUnwindSafe for PortStatus
impl Send for PortStatus
impl Sync for PortStatus
impl Unpin for PortStatus
impl UnwindSafe for PortStatus
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)