Struct aws_sdk_iotfleetwise::types::ObdInterface
source · #[non_exhaustive]pub struct ObdInterface {
pub name: String,
pub request_message_id: i32,
pub obd_standard: Option<String>,
pub pid_request_interval_seconds: i32,
pub dtc_request_interval_seconds: i32,
pub use_extended_ids: bool,
pub has_transmission_ecu: bool,
}Expand description
A network interface that specifies the On-board diagnostic (OBD) II network protocol.
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.name: StringThe name of the interface.
request_message_id: i32The ID of the message requesting vehicle data.
obd_standard: Option<String>The standard OBD II PID.
pid_request_interval_seconds: i32The maximum number message requests per second.
dtc_request_interval_seconds: i32The maximum number message requests per diagnostic trouble code per second.
use_extended_ids: boolWhether to use extended IDs in the message.
has_transmission_ecu: boolWhether the vehicle has a transmission control module (TCM).
Implementations§
source§impl ObdInterface
impl ObdInterface
sourcepub fn request_message_id(&self) -> i32
pub fn request_message_id(&self) -> i32
The ID of the message requesting vehicle data.
sourcepub fn obd_standard(&self) -> Option<&str>
pub fn obd_standard(&self) -> Option<&str>
The standard OBD II PID.
sourcepub fn pid_request_interval_seconds(&self) -> i32
pub fn pid_request_interval_seconds(&self) -> i32
The maximum number message requests per second.
sourcepub fn dtc_request_interval_seconds(&self) -> i32
pub fn dtc_request_interval_seconds(&self) -> i32
The maximum number message requests per diagnostic trouble code per second.
sourcepub fn use_extended_ids(&self) -> bool
pub fn use_extended_ids(&self) -> bool
Whether to use extended IDs in the message.
sourcepub fn has_transmission_ecu(&self) -> bool
pub fn has_transmission_ecu(&self) -> bool
Whether the vehicle has a transmission control module (TCM).
source§impl ObdInterface
impl ObdInterface
sourcepub fn builder() -> ObdInterfaceBuilder
pub fn builder() -> ObdInterfaceBuilder
Creates a new builder-style object to manufacture ObdInterface.
Trait Implementations§
source§impl Clone for ObdInterface
impl Clone for ObdInterface
source§fn clone(&self) -> ObdInterface
fn clone(&self) -> ObdInterface
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ObdInterface
impl Debug for ObdInterface
source§impl PartialEq for ObdInterface
impl PartialEq for ObdInterface
source§fn eq(&self, other: &ObdInterface) -> bool
fn eq(&self, other: &ObdInterface) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ObdInterface
Auto Trait Implementations§
impl Freeze for ObdInterface
impl RefUnwindSafe for ObdInterface
impl Send for ObdInterface
impl Sync for ObdInterface
impl Unpin for ObdInterface
impl UnwindSafe for ObdInterface
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