pub enum Filter {
OriginAsn(u32),
Prefix(IpNetwork, PrefixMatchType),
PeerIp(IpAddr),
PeerIps(Vec<IpAddr>),
PeerAsn(u32),
Type(ElemType),
TsStart(f64),
TsEnd(f64),
AsPath(Regex),
}
Expand description
Filter enum: definition o types of filters
The available filters are (filter_type
(FilterType
) – definition):
origin_asn
(OriginAsn(u32)
) – origin AS numberprefix(_super, _sub, _super_sub)
(Prefix(IpNetwork, PrefixMatchType)
) – network prefix and match typepeer_ip
(PeerIp(IpAddr)
) – peer’s IP addresspeer_ips
(Vec<PeerIp(IpAddr)>
) – peers’ IP addressespeer_asn
(PeerAsn(u32)
) – peer’s IP addresstype
(Type(ElemType)
) – message type (withdraw
orannounce
)ts_start
(TsStart(f64)
) andts_end
(TsEnd(f64)
) – start and end unix timestampas_path
(AsPath(Regex)
) – regular expression for AS path string
Variants
OriginAsn(u32)
Prefix(IpNetwork, PrefixMatchType)
PeerIp(IpAddr)
PeerIps(Vec<IpAddr>)
PeerAsn(u32)
Type(ElemType)
TsStart(f64)
TsEnd(f64)
AsPath(Regex)
Implementations
Auto Trait Implementations
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnwindSafe for Filter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more