pub enum Filter {
OriginAsn(u32),
Prefix(IpNetwork, PrefixMatchType),
PeerIp(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_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)
Tuple Fields
0: u32
Prefix(IpNetwork, PrefixMatchType)
PeerIp(IpAddr)
Tuple Fields
0: IpAddr
PeerAsn(u32)
Tuple Fields
0: u32
Type(ElemType)
Tuple Fields
0: ElemType
TsStart(f64)
Tuple Fields
0: f64
TsEnd(f64)
Tuple Fields
0: f64
AsPath(Regex)
Tuple Fields
0: Regex
Implementations
Auto Trait Implementations
impl RefUnwindSafe for Filter
impl UnwindSafe for Filter
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more