pub enum Filter {
OriginAsn(u32),
Prefix(IpNet, PrefixMatchType),
PeerIp(IpAddr),
PeerIps(Vec<IpAddr>),
PeerAsn(u32),
Type(ElemType),
IpVersion(IpVersion),
TsStart(f64),
TsEnd(f64),
AsPath(ComparableRegex),
Community(ComparableRegex),
}
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(IpNet, 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
(ComparableRegex
) – regular expression for AS path stringcommunity
(ComparableRegex
) – regular expression for community stringip_version
(IpVersion
) – IP version (ipv4
oripv6
)
Variants§
OriginAsn(u32)
Prefix(IpNet, PrefixMatchType)
PeerIp(IpAddr)
PeerIps(Vec<IpAddr>)
PeerAsn(u32)
Type(ElemType)
IpVersion(IpVersion)
TsStart(f64)
TsEnd(f64)
AsPath(ComparableRegex)
Community(ComparableRegex)
Implementations§
Trait Implementations§
impl StructuralPartialEq for Filter
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnwindSafe for Filter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more