Struct obd::passthru::PassThruIsoTp [−][src]
PassThru ISO-TP channel.
Implementations
impl<'ch> PassThruIsoTp<'ch>
[src]
pub fn new(
device: &'ch Device<'_>,
baudrate: u32,
timeout: u32
) -> Result<PassThruIsoTp<'ch>, Error>
[src]
device: &'ch Device<'_>,
baudrate: u32,
timeout: u32
) -> Result<PassThruIsoTp<'ch>, Error>
Creates a new ISO-TP channel from a device
Arguments
device
- the PassThru device.baudrate
- the baudrate in Hertz used in the CAN layer.timeout
- the timeout in milliseconds for sending and receiving.
pub fn set_filter(
&mut self,
source_id: u32,
destination_id: u32
) -> Result<(), Error>
[src]
&mut self,
source_id: u32,
destination_id: u32
) -> Result<(), Error>
Establishes the flow control filter
Trait Implementations
impl IsoTp for PassThruIsoTp<'_>
[src]
Auto Trait Implementations
impl<'ch> RefUnwindSafe for PassThruIsoTp<'ch>
[src]
impl<'ch> !Send for PassThruIsoTp<'ch>
[src]
impl<'ch> !Sync for PassThruIsoTp<'ch>
[src]
impl<'ch> Unpin for PassThruIsoTp<'ch>
[src]
impl<'ch> UnwindSafe for PassThruIsoTp<'ch>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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 = Infallible
The type returned in the event of a conversion error.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<I> Uds for I where
I: IsoTp,
[src]
I: IsoTp,
pub fn query_uds(&mut Self, u32, u8, &[u8]) -> Result<Vec<u8, Global>, Error>
[src]
fn query_vin(&mut self, arbitration_id: u32) -> Result<String, Error>
[src]
fn query_trouble_codes(
&mut self,
arbitration_id: u32
) -> Result<Vec<DTC>, Error>
[src]
&mut self,
arbitration_id: u32
) -> Result<Vec<DTC>, Error>
fn query_pending_trouble_codes(
&mut self,
arbitration_id: u32
) -> Result<Vec<DTC>, Error>
[src]
&mut self,
arbitration_id: u32
) -> Result<Vec<DTC>, Error>
fn set_diagnostic_session(
&mut self,
arbitration_id: u32,
id: u8
) -> Result<(), Error>
[src]
&mut self,
arbitration_id: u32,
id: u8
) -> Result<(), Error>
fn request_security_seed(
&mut self,
arbitration_id: u32
) -> Result<Vec<u8>, Error>
[src]
&mut self,
arbitration_id: u32
) -> Result<Vec<u8>, Error>
fn request_security_key(
&mut self,
arbitration_id: u32,
key: &[u8]
) -> Result<(), Error>
[src]
&mut self,
arbitration_id: u32,
key: &[u8]
) -> Result<(), Error>
fn read_memory_address(
&mut self,
arbitration_id: u32,
address: u32,
length: u16
) -> Result<Vec<u8>, Error>
[src]
&mut self,
arbitration_id: u32,
address: u32,
length: u16
) -> Result<Vec<u8>, Error>