pub struct IsoTpSocket { /* private fields */ }
Expand description

An ISO-TP socketcan socket.

Will be closed upon deallocation. To close manually, use std::drop::Drop. Internally this is just a wrapped file-descriptor.

Implementations

Open a named CAN ISO-TP device.

Usually the more common case, opens a socket can device by name, such as “vcan0” or “socan0”.

Open a named CAN ISO-TP device, passing additional options.

Usually the more common case, opens a socket can device by name, such as “vcan0” or “socan0”.

Open CAN ISO-TP device device by interface number.

Opens a CAN device by kernel interface number.

Open CAN ISO-TP device device by interface number, passing additional options.

Opens a CAN device by kernel interface number.

Change socket to non-blocking mode

Blocking read data

Blocking write a slice of data

Trait Implementations

Extracts the raw file descriptor. Read more

Executes the destructor for this type. Read more

Constructs a new instance of Self from the given raw file descriptor. Read more

Consumes this object, returning the raw underlying file descriptor. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.