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 ==.impl StructuralPartialEq for NetworkInterface
Auto Trait Implementations§
impl Freeze for NetworkInterface
impl RefUnwindSafe for NetworkInterface
impl Send for NetworkInterface
impl Sync for NetworkInterface
impl Unpin for NetworkInterface
impl UnwindSafe for NetworkInterface
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
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>
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>
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