[−][src]Struct socketcan_isotp::IsoTpOptions
ISO-TP otions aka can_isotp_options
Methods
impl IsoTpOptions
[src]
pub fn new(
flags: IsoTpBehaviour,
frame_txtime: Duration,
ext_address: u8,
txpad_content: u8,
rxpad_content: u8,
rx_ext_address: u8
) -> Result<Self, TryFromIntError>
[src]
flags: IsoTpBehaviour,
frame_txtime: Duration,
ext_address: u8,
txpad_content: u8,
rxpad_content: u8,
rx_ext_address: u8
) -> Result<Self, TryFromIntError>
pub fn get_flags(&self) -> Option<IsoTpBehaviour>
[src]
get flags for isotp behaviour.
pub fn set_flags(&mut self, flags: IsoTpBehaviour)
[src]
set flags for isotp behaviour.
pub fn get_frame_txtime(&self) -> Duration
[src]
get frame transmission time (N_As/N_Ar)
pub fn set_frame_txtime(
&mut self,
frame_txtime: Duration
) -> Result<(), TryFromIntError>
[src]
&mut self,
frame_txtime: Duration
) -> Result<(), TryFromIntError>
set frame transmission time (N_As/N_Ar)
pub fn get_ext_address(&self) -> u8
[src]
get frame transmission time (N_As/N_Ar)
pub fn set_ext_address(&mut self, ext_address: u8)
[src]
set address for extended addressing
pub fn get_txpad_content(&self) -> u8
[src]
get address for extended addressing
pub fn set_txpad_content(&mut self, txpad_content: u8)
[src]
set content of padding byte (tx)
pub fn get_rxpad_content(&self) -> u8
[src]
get content of padding byte (rx)
pub fn set_rxpad_content(&mut self, rxpad_content: u8)
[src]
set content of padding byte (rx)
pub fn get_rx_ext_address(&self) -> u8
[src]
get address for extended addressing
pub fn set_rx_ext_address(&mut self, rx_ext_address: u8)
[src]
set address for extended addressing
Trait Implementations
impl Default for IsoTpOptions
[src]
Auto Trait Implementations
impl Send for IsoTpOptions
impl Sync for IsoTpOptions
impl Unpin for IsoTpOptions
impl UnwindSafe for IsoTpOptions
impl RefUnwindSafe for IsoTpOptions
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,