pub struct SocketCanChannelBuilder { /* private fields */ }Expand description
Builder for configuring a SocketCAN channel before connecting.
The bitrate, data_bitrate, and sample_point methods store values but
do not apply them — SocketCAN bitrate configuration is done at the OS
level via ip link set or netlink, not through the socket API. Configure
your interface before calling connect.
Trait Implementations§
Source§impl ChannelBuilder for SocketCanChannelBuilder
impl ChannelBuilder for SocketCanChannelBuilder
type Channel = SocketCanChannel
type Error = SocketCanError
Source§fn bitrate(self, bitrate: u32) -> Result<Self, Self::Error>
fn bitrate(self, bitrate: u32) -> Result<Self, Self::Error>
Set the nominal (arbitration phase) bitrate in bits/s.
Source§fn data_bitrate(self, bitrate: u32) -> Result<Self, Self::Error>
fn data_bitrate(self, bitrate: u32) -> Result<Self, Self::Error>
Set the data phase bitrate for CAN FD in bits/s.
Auto Trait Implementations§
impl Freeze for SocketCanChannelBuilder
impl RefUnwindSafe for SocketCanChannelBuilder
impl Send for SocketCanChannelBuilder
impl Sync for SocketCanChannelBuilder
impl Unpin for SocketCanChannelBuilder
impl UnsafeUnpin for SocketCanChannelBuilder
impl UnwindSafe for SocketCanChannelBuilder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more