pub struct EventFilter { /* private fields */ }Expand description
A composable filter for event domains and individual network objects.
Implementations§
Source§impl EventFilter
impl EventFilter
pub const ALL: EventFilter
pub const fn none() -> EventFilter
pub const fn routes(self) -> EventFilter
pub const fn interfaces(self) -> EventFilter
pub const fn neighbors(self) -> EventFilter
pub const fn addresses(self) -> EventFilter
Sourcepub fn route(self, id: Id<Route>) -> EventFilter
pub fn route(self, id: Id<Route>) -> EventFilter
Narrows route delivery to id. Repeated object selectors compose as
a union within their domain.
Sourcepub fn interface(self, id: Id<Interface>) -> EventFilter
pub fn interface(self, id: Id<Interface>) -> EventFilter
Narrows interface delivery to id.
Sourcepub fn neighbor(self, id: Id<NeighborEntry>) -> EventFilter
pub fn neighbor(self, id: Id<NeighborEntry>) -> EventFilter
Narrows neighbor delivery to id.
Sourcepub fn address(self, id: Id<InterfaceAddress>) -> EventFilter
pub fn address(self, id: Id<InterfaceAddress>) -> EventFilter
Narrows interface-address delivery to id.
Trait Implementations§
Source§impl Clone for EventFilter
impl Clone for EventFilter
Source§fn clone(&self) -> EventFilter
fn clone(&self) -> EventFilter
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 moreSource§impl Debug for EventFilter
impl Debug for EventFilter
Source§impl Default for EventFilter
impl Default for EventFilter
Source§fn default() -> EventFilter
fn default() -> EventFilter
Returns the “default value” for a type. Read more
impl Eq for EventFilter
Source§impl Hash for EventFilter
impl Hash for EventFilter
Source§impl PartialEq for EventFilter
impl PartialEq for EventFilter
impl StructuralPartialEq for EventFilter
Auto Trait Implementations§
impl Freeze for EventFilter
impl RefUnwindSafe for EventFilter
impl Send for EventFilter
impl Sync for EventFilter
impl Unpin for EventFilter
impl UnsafeUnpin for EventFilter
impl UnwindSafe for EventFilter
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