Struct aws_sdk_iotfleetwise::types::NetworkInterface
source · #[non_exhaustive]pub struct NetworkInterface {
pub interface_id: String,
pub type: NetworkInterfaceType,
pub can_interface: Option<CanInterface>,
pub obd_interface: Option<ObdInterface>,
pub vehicle_middleware: Option<VehicleMiddleware>,
}Expand description
Represents a node and its specifications in an in-vehicle communication network. All signal decoders must be associated with a network node.
To return this information about all the network interfaces specified in a decoder manifest, use the API operation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.interface_id: StringThe ID of the network interface.
type: NetworkInterfaceTypeThe network protocol for the vehicle. For example, CAN_SIGNAL specifies a protocol that defines how data is communicated between electronic control units (ECUs). OBD_SIGNAL specifies a protocol that defines how self-diagnostic data is communicated between ECUs.
can_interface: Option<CanInterface>Information about a network interface specified by the Controller Area Network (CAN) protocol.
obd_interface: Option<ObdInterface>Information about a network interface specified by the On-board diagnostic (OBD) II protocol.
vehicle_middleware: Option<VehicleMiddleware>The vehicle middleware defined as a type of network interface. Examples of vehicle middleware include ROS2 and SOME/IP.
Implementations§
source§impl NetworkInterface
impl NetworkInterface
sourcepub fn interface_id(&self) -> &str
pub fn interface_id(&self) -> &str
The ID of the network interface.
sourcepub fn type(&self) -> &NetworkInterfaceType
pub fn type(&self) -> &NetworkInterfaceType
The network protocol for the vehicle. For example, CAN_SIGNAL specifies a protocol that defines how data is communicated between electronic control units (ECUs). OBD_SIGNAL specifies a protocol that defines how self-diagnostic data is communicated between ECUs.
sourcepub fn can_interface(&self) -> Option<&CanInterface>
pub fn can_interface(&self) -> Option<&CanInterface>
Information about a network interface specified by the Controller Area Network (CAN) protocol.
sourcepub fn obd_interface(&self) -> Option<&ObdInterface>
pub fn obd_interface(&self) -> Option<&ObdInterface>
Information about a network interface specified by the On-board diagnostic (OBD) II protocol.
sourcepub fn vehicle_middleware(&self) -> Option<&VehicleMiddleware>
pub fn vehicle_middleware(&self) -> Option<&VehicleMiddleware>
The vehicle middleware defined as a type of network interface. Examples of vehicle middleware include ROS2 and SOME/IP.
source§impl NetworkInterface
impl NetworkInterface
sourcepub fn builder() -> NetworkInterfaceBuilder
pub fn builder() -> NetworkInterfaceBuilder
Creates a new builder-style object to manufacture NetworkInterface.
Trait Implementations§
source§impl Clone for NetworkInterface
impl Clone for NetworkInterface
source§fn clone(&self) -> NetworkInterface
fn clone(&self) -> NetworkInterface
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for NetworkInterface
impl Debug for NetworkInterface
source§impl PartialEq for NetworkInterface
impl PartialEq for NetworkInterface
source§fn eq(&self, other: &NetworkInterface) -> bool
fn eq(&self, other: &NetworkInterface) -> bool
self and other values to be equal, and is used
by ==.