Struct socketcan_isotp::IsoTpOptions
source · #[repr(C)]pub struct IsoTpOptions { /* private fields */ }
Expand description
ISO-TP otions aka can_isotp_options
Implementations§
source§impl IsoTpOptions
impl IsoTpOptions
pub fn new( flags: IsoTpBehaviour, frame_txtime: Duration, ext_address: u8, txpad_content: u8, rxpad_content: u8, rx_ext_address: u8 ) -> Result<Self, TryFromIntError>
sourcepub fn get_flags(&self) -> Option<IsoTpBehaviour>
pub fn get_flags(&self) -> Option<IsoTpBehaviour>
get flags for isotp behaviour.
sourcepub fn set_flags(&mut self, flags: IsoTpBehaviour)
pub fn set_flags(&mut self, flags: IsoTpBehaviour)
set flags for isotp behaviour.
sourcepub fn get_frame_txtime(&self) -> Duration
pub fn get_frame_txtime(&self) -> Duration
get frame transmission time (N_As/N_Ar)
sourcepub fn set_frame_txtime(
&mut self,
frame_txtime: Duration
) -> Result<(), TryFromIntError>
pub fn set_frame_txtime( &mut self, frame_txtime: Duration ) -> Result<(), TryFromIntError>
set frame transmission time (N_As/N_Ar)
sourcepub fn get_ext_address(&self) -> u8
pub fn get_ext_address(&self) -> u8
get frame transmission time (N_As/N_Ar)
sourcepub fn set_ext_address(&mut self, ext_address: u8)
pub fn set_ext_address(&mut self, ext_address: u8)
set address for extended addressing
sourcepub fn get_txpad_content(&self) -> u8
pub fn get_txpad_content(&self) -> u8
get address for extended addressing
sourcepub fn set_txpad_content(&mut self, txpad_content: u8)
pub fn set_txpad_content(&mut self, txpad_content: u8)
set content of padding byte (tx)
sourcepub fn get_rxpad_content(&self) -> u8
pub fn get_rxpad_content(&self) -> u8
get content of padding byte (rx)
sourcepub fn set_rxpad_content(&mut self, rxpad_content: u8)
pub fn set_rxpad_content(&mut self, rxpad_content: u8)
set content of padding byte (rx)
sourcepub fn get_rx_ext_address(&self) -> u8
pub fn get_rx_ext_address(&self) -> u8
get address for extended addressing
sourcepub fn set_rx_ext_address(&mut self, rx_ext_address: u8)
pub fn set_rx_ext_address(&mut self, rx_ext_address: u8)
set address for extended addressing
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for IsoTpOptions
impl Send for IsoTpOptions
impl Sync for IsoTpOptions
impl Unpin for IsoTpOptions
impl UnwindSafe for IsoTpOptions
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