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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)