pub enum LinReadDeviceResponseTimeout {
None,
DelayMicroseconds(u32),
DelayMilliseconds(u32),
}Expand description
How long to wait after sending a read header before reading the response, allowing the slave device to respond. Typically this is a 1-10 ms delay but can vary by system.
Variants§
Implementations§
Source§impl LinReadDeviceResponseTimeout
impl LinReadDeviceResponseTimeout
Sourcepub fn get_duration_ns(&self) -> u32
pub fn get_duration_ns(&self) -> u32
Get the duration in nanoseconds for the LIN read device response timeout.
Trait Implementations§
Source§impl Clone for LinReadDeviceResponseTimeout
impl Clone for LinReadDeviceResponseTimeout
Source§fn clone(&self) -> LinReadDeviceResponseTimeout
fn clone(&self) -> LinReadDeviceResponseTimeout
Returns a duplicate 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 Debug for LinReadDeviceResponseTimeout
impl Debug for LinReadDeviceResponseTimeout
Source§impl PartialEq for LinReadDeviceResponseTimeout
impl PartialEq for LinReadDeviceResponseTimeout
Source§fn eq(&self, other: &LinReadDeviceResponseTimeout) -> bool
fn eq(&self, other: &LinReadDeviceResponseTimeout) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LinReadDeviceResponseTimeout
impl StructuralPartialEq for LinReadDeviceResponseTimeout
Auto Trait Implementations§
impl Freeze for LinReadDeviceResponseTimeout
impl RefUnwindSafe for LinReadDeviceResponseTimeout
impl Send for LinReadDeviceResponseTimeout
impl Sync for LinReadDeviceResponseTimeout
impl Unpin for LinReadDeviceResponseTimeout
impl UnwindSafe for LinReadDeviceResponseTimeout
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