pub struct Port {
pub internal_reference_designator: Option<String>,
pub internal_connector_type: Option<PortInformationConnectorTypeData>,
pub external_reference_designator: Option<String>,
pub external_connector_type: Option<PortInformationConnectorTypeData>,
pub port_type: Option<PortInformationPortTypeData>,
}Expand description
Attributes of a system port connector (serial, parallel, keyboard or mouse ports)
Fields§
§internal_reference_designator: Option<String>Internal reference designator, that is, internal to the system enclosure
internal_connector_type: Option<PortInformationConnectorTypeData>Internal connector type
external_reference_designator: Option<String>External reference designation, external to the system enclosure
external_connector_type: Option<PortInformationConnectorTypeData>External connector type
port_type: Option<PortInformationPortTypeData>Function of the port
Trait Implementations§
Source§impl<'a> From<SMBiosPortConnectorInformation<'a>> for Port
impl<'a> From<SMBiosPortConnectorInformation<'a>> for Port
Source§fn from(value: SMBiosPortConnectorInformation<'_>) -> Self
fn from(value: SMBiosPortConnectorInformation<'_>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Port
impl RefUnwindSafe for Port
impl Send for Port
impl Sync for Port
impl Unpin for Port
impl UnwindSafe for Port
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