pub struct CanFilter(/* private fields */);Expand description
The CAN filter defines which ID’s can be accepted on a socket.
Each filter contains an internal id and mask. Packets are considered to
be matched by a filter if received_id & mask == filter_id & mask holds
true.
A socket can be given multiple filters, and each one can be inverted (ref)
Implementations§
Trait Implementations§
Source§impl AsRef<can_filter> for CanFilter
impl AsRef<can_filter> for CanFilter
Source§fn as_ref(&self) -> &can_filter
fn as_ref(&self) -> &can_filter
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl From<can_filter> for CanFilter
impl From<can_filter> for CanFilter
Source§fn from(filt: can_filter) -> Self
fn from(filt: can_filter) -> Self
Converts to this type from the input type.
impl Copy for CanFilter
impl Eq for CanFilter
impl StructuralPartialEq for CanFilter
Auto Trait Implementations§
impl Freeze for CanFilter
impl RefUnwindSafe for CanFilter
impl Send for CanFilter
impl Sync for CanFilter
impl Unpin for CanFilter
impl UnwindSafe for CanFilter
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