pub enum FilterChange<F: PacketFilter> {
Insert(Pid, F),
Remove(Pid),
}Expand description
Represents the intention to either insert a new PacketFilter into the Demultiplex instance
or remove an old PacketFilter from the Demultiplex instance.
Variants§
Insert(Pid, F)
Insert the given filter for the given Pid.
Remove(Pid)
Remove any filter for the given Pid.
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for FilterChange<F>where
F: Freeze,
impl<F> RefUnwindSafe for FilterChange<F>where
F: RefUnwindSafe,
impl<F> Send for FilterChange<F>where
F: Send,
impl<F> Sync for FilterChange<F>where
F: Sync,
impl<F> Unpin for FilterChange<F>where
F: Unpin,
impl<F> UnwindSafe for FilterChange<F>where
F: 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