pub struct MessageFilter {
pub id: u32,
pub mask: Option<u32>,
pub filter_type: MessageFilterType,
}
Expand description
A filter that the hardware might apply to incomming traffic.
Fields§
§id: u32
The CAN id (or common subset of a CAN idea if a mask is specified) to filter or select.
mask: Option<u32>
Incomming CAN ids are masked with this mask (if present) before being compared against id.
filter_type: MessageFilterType
The intent of this filter, is it a “forward if” or a “forward unless”?
Auto Trait Implementations§
impl Freeze for MessageFilter
impl RefUnwindSafe for MessageFilter
impl Send for MessageFilter
impl Sync for MessageFilter
impl Unpin for MessageFilter
impl UnwindSafe for MessageFilter
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