Struct netstack3_core::filter::Routine
source · pub struct Routine<I, DeviceClass, RuleInfo>where
I: IpExt,{
pub rules: Vec<Rule<I, DeviceClass, RuleInfo>>,
}
Expand description
A sequence of Rule
s.
Fields§
§rules: Vec<Rule<I, DeviceClass, RuleInfo>>
The rules to be executed in order.
Trait Implementations§
source§impl<I, DeviceClass, RuleInfo, IpType> GenericOverIp<IpType> for Routine<I, DeviceClass, RuleInfo>
impl<I, DeviceClass, RuleInfo, IpType> GenericOverIp<IpType> for Routine<I, DeviceClass, RuleInfo>
Auto Trait Implementations§
impl<I, DeviceClass, RuleInfo> Freeze for Routine<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 Routine<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 Routine<I, DeviceClass, RuleInfo>
impl<I, DeviceClass, RuleInfo> Sync for Routine<I, DeviceClass, RuleInfo>
impl<I, DeviceClass, RuleInfo> Unpin for Routine<I, DeviceClass, RuleInfo>
impl<I, DeviceClass, RuleInfo> UnwindSafe for Routine<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.