pub enum Filter {
    OriginAsn(u32),
    Prefix(IpNetPrefixMatchType),
    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 number
  • prefix(_super, _sub, _super_sub) (Prefix(IpNet, PrefixMatchType)) – network prefix and match type
  • peer_ip (PeerIp(IpAddr)) – peer’s IP address
  • peer_ips (Vec<PeerIp(IpAddr)>) – peers’ IP addresses
  • peer_asn (PeerAsn(u32)) – peer’s IP address
  • type (Type(ElemType)) – message type (withdraw or announce)
  • ts_start (TsStart(f64)) and ts_end (TsEnd(f64)) – start and end unix timestamp
  • as_path (AsPath(Regex)) – regular expression for AS path string

Variants§

§

OriginAsn(u32)

§

Prefix(IpNetPrefixMatchType)

§

PeerIp(IpAddr)

§

PeerIps(Vec<IpAddr>)

§

PeerAsn(u32)

§

Type(ElemType)

§

TsStart(f64)

§

TsEnd(f64)

§

AsPath(Regex)

Implementations§

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
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