Struct netstack3_core::filter::Hook
source · pub struct Hook<I, DeviceClass, RuleInfo>where
I: IpExt,{
pub routines: Vec<Routine<I, DeviceClass, RuleInfo>>,
}
Expand description
A particular entry point for packet processing in which filtering routines are installed.
Fields§
§routines: Vec<Routine<I, DeviceClass, RuleInfo>>
The routines to be executed in order.
Trait Implementations§
source§impl<I, DeviceClass, RuleInfo, IpType> GenericOverIp<IpType> for Hook<I, DeviceClass, RuleInfo>
impl<I, DeviceClass, RuleInfo, IpType> GenericOverIp<IpType> for Hook<I, DeviceClass, RuleInfo>
Auto Trait Implementations§
impl<I, DeviceClass, RuleInfo> Freeze for Hook<I, DeviceClass, RuleInfo>where
I: IcmpIpExt + IpProtoExt + Ip + Sealed + Sync + Send + PartialOrd + PartialEq + Ord + Hash + Eq + Default + Debug + Copy + Clone + EthernetIpExt + 'static,
impl<I, DeviceClass, RuleInfo> RefUnwindSafe for Hook<I, DeviceClass, RuleInfo>where
I: IcmpIpExt + IpProtoExt + Ip + Sealed + Sync + Send + PartialOrd + PartialEq + Ord + Hash + Eq + Default + Debug + Copy + Clone + EthernetIpExt + 'static,
RuleInfo: RefUnwindSafe,
<I as Ip>::Addr: RefUnwindSafe,
DeviceClass: RefUnwindSafe,
<I as IpProtoExt>::Proto: RefUnwindSafe,
impl<I, DeviceClass, RuleInfo> Send for Hook<I, DeviceClass, RuleInfo>
impl<I, DeviceClass, RuleInfo> Sync for Hook<I, DeviceClass, RuleInfo>
impl<I, DeviceClass, RuleInfo> Unpin for Hook<I, DeviceClass, RuleInfo>
impl<I, DeviceClass, RuleInfo> UnwindSafe for Hook<I, DeviceClass, RuleInfo>where
I: IcmpIpExt + IpProtoExt + Ip + Sealed + Sync + Send + PartialOrd + PartialEq + Ord + Hash + Eq + Default + Debug + Copy + Clone + EthernetIpExt + 'static,
RuleInfo: UnwindSafe + RefUnwindSafe,
<I as Ip>::Addr: UnwindSafe + RefUnwindSafe,
DeviceClass: UnwindSafe + RefUnwindSafe,
<I as IpProtoExt>::Proto: UnwindSafe + RefUnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
source§fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
Handle a timer firing.