Enum libp2p_quic::ConnectError [−][src]
pub enum ConnectError { EndpointStopping, TooManyConnections, InvalidDnsName(String), Config(ConfigError), InvalidRemoteAddress(SocketAddr), }
Expand description
Errors in the parameters being used to create a new connection
These arise before any I/O has been performed.
Variants
Expand description
The endpoint can no longer create new connections
Indicates that a necessary component of the endpoint has been dropped or otherwise disabled.
Expand description
The number of active connections on the local endpoint is at the limit
Try using longer connection IDs.
InvalidDnsName(String)
Expand description
The domain name supplied was malformed
Config(ConfigError)
Expand description
The transport configuration was invalid
InvalidRemoteAddress(SocketAddr)
Expand description
The remote SocketAddr
supplied was malformed
Examples include attempting to connect to port 0, or using an inappropriate address family.
Trait Implementations
impl Clone for ConnectError
[src]
impl Clone for ConnectError
[src]pub fn clone(&self) -> ConnectError
[src]
pub fn clone(&self) -> ConnectError
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for ConnectError
[src]
impl Debug for ConnectError
[src]impl Display for ConnectError
[src]
impl Display for ConnectError
[src]impl Error for ConnectError
[src]
impl Error for ConnectError
[src]pub fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl From<ConnectError> for QuicError
[src]
impl From<ConnectError> for QuicError
[src]fn from(source: ConnectError) -> Self
[src]
fn from(source: ConnectError) -> Self
[src]Performs the conversion.
impl PartialEq<ConnectError> for ConnectError
[src]
impl PartialEq<ConnectError> for ConnectError
[src]pub fn eq(&self, other: &ConnectError) -> bool
[src]
pub fn eq(&self, other: &ConnectError) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &ConnectError) -> bool
[src]
pub fn ne(&self, other: &ConnectError) -> bool
[src]This method tests for !=
.
impl Eq for ConnectError
[src]
impl StructuralEq for ConnectError
[src]
impl StructuralPartialEq for ConnectError
[src]
Auto Trait Implementations
impl RefUnwindSafe for ConnectError
impl Send for ConnectError
impl Sync for ConnectError
impl Unpin for ConnectError
impl UnwindSafe for ConnectError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,