Struct ecu_diagnostics::hardware::socketcan::SocketCanScanner
source · pub struct SocketCanScanner { /* private fields */ }
Expand description
Socket CAN device scanner
Implementations§
Trait Implementations§
source§impl Debug for SocketCanScanner
impl Debug for SocketCanScanner
source§impl Default for SocketCanScanner
impl Default for SocketCanScanner
source§impl HardwareScanner<SocketCanDevice> for SocketCanScanner
impl HardwareScanner<SocketCanDevice> for SocketCanScanner
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<SocketCanDevice>
fn open_device_by_index(&self, idx: usize) -> HardwareResult<SocketCanDevice>
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<SocketCanDevice>
fn open_device_by_name(&self, name: &str) -> HardwareResult<SocketCanDevice>
Tries to open a device given the devices name
Auto Trait Implementations§
impl Freeze for SocketCanScanner
impl RefUnwindSafe for SocketCanScanner
impl Send for SocketCanScanner
impl Sync for SocketCanScanner
impl Unpin for SocketCanScanner
impl UnwindSafe for SocketCanScanner
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