pub enum Filter {
    OriginAsn(u32),
    Prefix(IpNetworkPrefixMatchType),
    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 number
  • prefix(_super, _sub, _super_sub) (Prefix(IpNetwork, PrefixMatchType)) – network prefix and match type
  • peer_ip (PeerIp(IpAddr)) – peer’s IP address
  • 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)

Tuple Fields

0: u32

Prefix(IpNetworkPrefixMatchType)

Tuple Fields

PeerIp(IpAddr)

Tuple Fields

0: IpAddr

PeerAsn(u32)

Tuple Fields

0: u32

Type(ElemType)

Tuple Fields

TsStart(f64)

Tuple Fields

0: f64

TsEnd(f64)

Tuple Fields

0: f64

AsPath(Regex)

Tuple Fields

0: 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

Performs the conversion.

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

Performs the conversion.

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