Struct bgpq3::Bgpq3Query[][src]

pub struct Bgpq3Query { /* fields omitted */ }

A query for bgpq3.

See Bgpq3::query_v4 and Bgpq3::query_v6 for usage examples.

Example

AS-SET

use bgpq3::Bgpq3Query;
let query: Bgpq3Query = "AS-RAPPET".into();

ASN

use bgpq3::Bgpq3Query;
let query: Bgpq3Query = 207968.into();

Implementations

impl Bgpq3Query[src]

pub fn as_set(as_set: &str) -> Bgpq3Query[src]

pub fn asn(asn: u32) -> Bgpq3Query[src]

Trait Implementations

impl Clone for Bgpq3Query[src]

impl Debug for Bgpq3Query[src]

impl From<&'_ str> for Bgpq3Query[src]

impl From<u32> for Bgpq3Query[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.