[][src]Enum internet2::AddrError

pub enum AddrError {
    UnknownProtocol(String),
    UnknownUrlScheme(String),
    MalformedUrl(ParseError),
    MalformedIpAddr(AddrParseError),
    MalformedInetAddr(AddrParseError),
    InvalidPubkey,
    HostRequired,
    PortRequired,
    UnexpectedAuthority,
    UnexpectedHost,
    UnexpectedPort,
    InvalidZmqType(String),
    ZmqTypeRequired,
    ZmqContextRequired,
    Unsupported(&'static str),
    NoOnionSupport,
}

Error extracting transport-level address types (FramingProtocol, [LocalAddr], [RemoteAddr]) and session-level node types (NodeAddr, RemoteNodeAddr) from string, URLs and other data types

Variants

UnknownProtocol(String)

Unknown protocol name in URL scheme ({0})

UnknownUrlScheme(String)

The provided URL scheme {0} was not recognized

MalformedUrl(ParseError)

Can't parse URL from the given string

MalformedIpAddr(AddrParseError)

Malformed IP address. NB: DNS addressing is not used since it is considered insecure in terms of censorship resistance, so you need to provide it in a form of either IPv4 or IPv6 address. If you need Tor support use other protocol type supporting Tor.

MalformedInetAddr(AddrParseError)

Malformed IP or Onion address. NB: DNS addressing is not used since it is considered insecure in terms of censorship resistance, so you need to provide it in a form of either IPv4, IPv6 address or Tor v2, v3 address (w/o .onion suffix)

InvalidPubkey

Invalid public key data representing node id

HostRequired

No host information found in URL, while it is required for the given scheme

PortRequired

No port information found in URL, while it is required for the given scheme

UnexpectedAuthority

Unexpected URL authority data (part before '@' in URL) which must be omitted

UnexpectedHost

Used scheme must not contain information about host

UnexpectedPort

Used scheme must not contain information about port

InvalidZmqType(String)

Unsupported ZMQ API type ({0}). List of supported APIs:

  • rpc
  • p2p
  • sub
  • esb
ZmqTypeRequired

No ZMQ API type information for URL scheme that requires one.

ZmqContextRequired

Inproc ZMQ type requires ZMQ context which exsits only in runtime and can't be persisted. This, it can't be provided through this type.

Unsupported(&'static str)

The provided protocol can't be used for {0}

NoOnionSupport

Onion addresses are not supported by this socket type

Trait Implementations

impl Clone for AddrError[src]

impl Debug for AddrError[src]

impl Display for AddrError[src]

impl Eq for AddrError[src]

impl Error for AddrError[src]

impl From<AddrParseError> for AddrError[src]

impl From<AddrParseError> for AddrError[src]

impl From<Error> for AddrError[src]

impl From<NoOnionSupportError> for AddrError[src]

impl From<ParseError> for AddrError[src]

impl PartialEq<AddrError> for AddrError[src]

impl StructuralEq for AddrError[src]

impl StructuralPartialEq for AddrError[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> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,