pub struct PortBaseInfo {
pub port_class: PortClass,
pub rx_types: Vec<FrameType>,
pub tx_types: Vec<FrameTypeSupport>,
}
Expand description
Network device base info with all required fields.
Fields§
§port_class: PortClass
Port’s class.
rx_types: Vec<FrameType>
Supported rx frame types on this port.
tx_types: Vec<FrameTypeSupport>
Supported tx frame types on this port.
Trait Implementations§
Source§impl Clone for PortBaseInfo
impl Clone for PortBaseInfo
Source§fn clone(&self) -> PortBaseInfo
fn clone(&self) -> PortBaseInfo
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 PortBaseInfo
impl Debug for PortBaseInfo
Source§impl From<PortBaseInfo> for PortBaseInfo
impl From<PortBaseInfo> for PortBaseInfo
Source§fn from(src: PortBaseInfo) -> PortBaseInfo
fn from(src: PortBaseInfo) -> PortBaseInfo
Converts to this type from the input type.
Source§impl TryFrom<PortBaseInfo> for PortBaseInfo
impl TryFrom<PortBaseInfo> for PortBaseInfo
Source§type Error = PortBaseInfoValidationError
type Error = PortBaseInfoValidationError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for PortBaseInfo
impl RefUnwindSafe for PortBaseInfo
impl Send for PortBaseInfo
impl Sync for PortBaseInfo
impl Unpin for PortBaseInfo
impl UnwindSafe for PortBaseInfo
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