[][src]Struct socketcan_isotp::IsoTpOptions

#[repr(C)]
pub struct IsoTpOptions { /* fields omitted */ }

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]

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]

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

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]