[−][src]Enum internet2::AddrError
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)
Invalid public key data representing node id
No host information found in URL, while it is required for the given scheme
No port information found in URL, while it is required for the given scheme
Unexpected URL authority data (part before '@' in URL) which must be omitted
Used scheme must not contain information about host
Used scheme must not contain information about port
InvalidZmqType(String)
Unsupported ZMQ API type ({0}). List of supported APIs:
rpc
p2p
sub
esb
No ZMQ API type information for URL scheme that requires one.
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}
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]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<AddrParseError> for AddrError
[src]
pub fn from(v: AddrParseError) -> Self
[src]
impl From<AddrParseError> for AddrError
[src]
pub fn from(v: AddrParseError) -> Self
[src]
impl From<Error> for AddrError
[src]
impl From<NoOnionSupportError> for AddrError
[src]
pub fn from(v: NoOnionSupportError) -> Self
[src]
impl From<ParseError> for AddrError
[src]
pub fn from(v: ParseError) -> Self
[src]
impl PartialEq<AddrError> for AddrError
[src]
impl StructuralEq for AddrError
[src]
impl StructuralPartialEq for AddrError
[src]
Auto Trait Implementations
impl RefUnwindSafe for AddrError
[src]
impl Send for AddrError
[src]
impl Sync for AddrError
[src]
impl Unpin for AddrError
[src]
impl UnwindSafe for AddrError
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,