pub struct Filter<ID, UNIT>{
pub filter: FilterType<ID, UNIT>,
pub action: Action,
}
Expand description
Filter
Fields§
§filter: FilterType<ID, UNIT>
How to match an incoming message
action: Action
What to do with a matching message
Implementations§
Source§impl Filter<StandardId, u16>
impl Filter<StandardId, u16>
Sourcepub fn accept_all_into_fifo0() -> StandardFilter
pub fn accept_all_into_fifo0() -> StandardFilter
Accept all messages in FIFO 0
Sourcepub fn accept_all_into_fifo1() -> StandardFilter
pub fn accept_all_into_fifo1() -> StandardFilter
Accept all messages in FIFO 1
Sourcepub fn reject_all() -> StandardFilter
pub fn reject_all() -> StandardFilter
Reject all messages
Sourcepub fn disable() -> StandardFilter
pub fn disable() -> StandardFilter
Disable the filter
Source§impl Filter<ExtendedId, u32>
impl Filter<ExtendedId, u32>
Sourcepub fn accept_all_into_fifo0() -> ExtendedFilter
pub fn accept_all_into_fifo0() -> ExtendedFilter
Accept all messages in FIFO 0
Sourcepub fn accept_all_into_fifo1() -> ExtendedFilter
pub fn accept_all_into_fifo1() -> ExtendedFilter
Accept all messages in FIFO 1
Sourcepub fn reject_all() -> ExtendedFilter
pub fn reject_all() -> ExtendedFilter
Reject all messages
Sourcepub fn disable() -> ExtendedFilter
pub fn disable() -> ExtendedFilter
Disable the filter
Trait Implementations§
impl<ID, UNIT> Copy for Filter<ID, UNIT>
Auto Trait Implementations§
impl<ID, UNIT> Freeze for Filter<ID, UNIT>
impl<ID, UNIT> RefUnwindSafe for Filter<ID, UNIT>where
ID: RefUnwindSafe,
UNIT: RefUnwindSafe,
impl<ID, UNIT> Send for Filter<ID, UNIT>
impl<ID, UNIT> Sync for Filter<ID, UNIT>
impl<ID, UNIT> Unpin for Filter<ID, UNIT>
impl<ID, UNIT> UnwindSafe for Filter<ID, UNIT>where
ID: UnwindSafe,
UNIT: UnwindSafe,
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