Struct ecu_diagnostics::hardware::passthru::PassthruScanner
source · pub struct PassthruScanner { /* private fields */ }
Expand description
Device scanner for Passthru supported devices
Implementations§
Trait Implementations§
source§impl Clone for PassthruScanner
impl Clone for PassthruScanner
source§fn clone(&self) -> PassthruScanner
fn clone(&self) -> PassthruScanner
Returns a copy 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 PassthruScanner
impl Debug for PassthruScanner
source§impl Default for PassthruScanner
impl Default for PassthruScanner
source§impl HardwareScanner<PassthruDevice> for PassthruScanner
impl HardwareScanner<PassthruDevice> for PassthruScanner
source§fn list_devices(&self) -> Vec<HardwareInfo>
fn list_devices(&self) -> Vec<HardwareInfo>
Lists all scanned devices. This does not necessarily
mean that the hardware can be used, just that the system
known it exists.
source§fn open_device_by_index(&self, idx: usize) -> HardwareResult<PassthruDevice>
fn open_device_by_index(&self, idx: usize) -> HardwareResult<PassthruDevice>
Tries to open a device by a specific index from the HardwareScanner::list_devices function.
source§fn open_device_by_name(&self, name: &str) -> HardwareResult<PassthruDevice>
fn open_device_by_name(&self, name: &str) -> HardwareResult<PassthruDevice>
Tries to open a device given the devices name
source§impl Ord for PassthruScanner
impl Ord for PassthruScanner
source§fn cmp(&self, other: &PassthruScanner) -> Ordering
fn cmp(&self, other: &PassthruScanner) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PassthruScanner
impl PartialEq for PassthruScanner
source§fn eq(&self, other: &PassthruScanner) -> bool
fn eq(&self, other: &PassthruScanner) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PassthruScanner
impl PartialOrd for PassthruScanner
source§fn partial_cmp(&self, other: &PassthruScanner) -> Option<Ordering>
fn partial_cmp(&self, other: &PassthruScanner) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for PassthruScanner
impl StructuralPartialEq for PassthruScanner
Auto Trait Implementations§
impl Freeze for PassthruScanner
impl RefUnwindSafe for PassthruScanner
impl Send for PassthruScanner
impl Sync for PassthruScanner
impl Unpin for PassthruScanner
impl UnwindSafe for PassthruScanner
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