pub struct SocketCanReceiver { /* private fields */ }Available on Linux and crate feature
socketcan only.Expand description
A handle to a socketcan CAN socket implementing AsyncCanReceiver.
Trait Implementations§
Source§impl AsyncCanReceiver for SocketCanReceiver
impl AsyncCanReceiver for SocketCanReceiver
Source§fn try_recv(&mut self) -> Option<CanMessage>
fn try_recv(&mut self) -> Option<CanMessage>
Receive available message immediately
Source§async fn recv(&mut self) -> Result<CanMessage, ReceiveError>
async fn recv(&mut self) -> Result<CanMessage, ReceiveError>
A blocking receive
Source§impl Clone for SocketCanReceiver
impl Clone for SocketCanReceiver
Source§fn clone(&self) -> SocketCanReceiver
fn clone(&self) -> SocketCanReceiver
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for SocketCanReceiver
impl !UnwindSafe for SocketCanReceiver
impl Freeze for SocketCanReceiver
impl Send for SocketCanReceiver
impl Sync for SocketCanReceiver
impl Unpin for SocketCanReceiver
impl UnsafeUnpin for SocketCanReceiver
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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