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

SocketCAN interface

Controlled through the kernel’s Netlink interface, CAN devices can be brought up or down or configured through this.

Implementations

Open CAN interface by name

Similar to open_if, but looks up the device by name instead

Open CAN interface

Creates a new CanInterface instance. No actual “opening” is necessary or performed when calling this function.

Bring down CAN interface

Use a netlink control socket to set the interface status to “down”.

Bring up CAN interface

Brings the interface up by settings its “up” flag enabled via netlink.

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.