Struct dmidecode::structures::port_connector::PortConnector
source · pub struct PortConnector<'a> {
pub handle: u16,
pub internal_reference_designator: &'a str,
pub internal_connector_type: ConnectorType,
pub external_reference_designator: &'a str,
pub external_connector_type: ConnectorType,
pub port_type: PortType,
}Expand description
The Port Connector Information table defined in the SMBIOS specification.
Optional fields will only be set if the version of the parsed SMBIOS table is high enough to have defined the field.
Fields§
§handle: u16Specifies the structure’s handle
internal_reference_designator: &'a strInternal Reference Designator, that is, internal to the system enclosure
EXAMPLE: ‘J101’, 0
internal_connector_type: ConnectorTypeInternal Connector type
external_reference_designator: &'a strString number for the External Reference Designation external to the system enclosure
EXAMPLE: ‘COM A’, 0
external_connector_type: ConnectorTypeExternal Connector type
port_type: PortTypeDescribes the function of the port
Trait Implementations§
source§impl<'a> Clone for PortConnector<'a>
impl<'a> Clone for PortConnector<'a>
source§fn clone(&self) -> PortConnector<'a>
fn clone(&self) -> PortConnector<'a>
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<'a> Debug for PortConnector<'a>
impl<'a> Debug for PortConnector<'a>
source§impl<'a> Hash for PortConnector<'a>
impl<'a> Hash for PortConnector<'a>
source§impl<'a> PartialEq for PortConnector<'a>
impl<'a> PartialEq for PortConnector<'a>
source§fn eq(&self, other: &PortConnector<'a>) -> bool
fn eq(&self, other: &PortConnector<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'a> Copy for PortConnector<'a>
impl<'a> Eq for PortConnector<'a>
impl<'a> StructuralEq for PortConnector<'a>
impl<'a> StructuralPartialEq for PortConnector<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for PortConnector<'a>
impl<'a> Send for PortConnector<'a>
impl<'a> Sync for PortConnector<'a>
impl<'a> Unpin for PortConnector<'a>
impl<'a> UnwindSafe for PortConnector<'a>
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