Skip to main content

Module transport

Module transport 

Source
Expand description

CAN transport abstraction.

Structs§

BusPoller
Registers multiple bus fds and waits for any to become readable within a deadline. Buses with no raw_fd cannot be registered and must be polled out-of-band.
MockCanBus
Single-process mock CAN bus.
SocketCanBus
Linux SocketCAN bus.

Enums§

MockRecordedCall
Record of method calls a MockCanBus has seen — used by tests to assert that group code calls only send and never drain_inbound_nonblocking.
TransportError
Errors returned by transport operations.

Traits§

CanBus
The contract every CAN transport must satisfy.