Enum bonsaidb::client::fabruic::error::ConnectionError
pub enum ConnectionError {
VersionMismatch,
TransportError(Error),
ConnectionClosed(ConnectionClose),
ApplicationClosed(ApplicationClose),
Reset,
TimedOut,
LocallyClosed,
}
Expand description
Reasons why a connection might be lost
Variants§
VersionMismatch
The peer doesn’t implement any supported version
TransportError(Error)
The peer violated the QUIC specification as understood by this implementation
ConnectionClosed(ConnectionClose)
The peer’s QUIC stack aborted the connection automatically
ApplicationClosed(ApplicationClose)
The peer closed the connection
Reset
The peer is unable to continue processing this connection, usually due to having restarted
TimedOut
Communication with the peer has lapsed for longer than the negotiated idle timeout
If neither side is sending keep-alives, a connection will time out after a long enough idle
period even if the peer is still reachable. See also [TransportConfig::max_idle_timeout()
]
and [TransportConfig::keep_alive_interval()
].
LocallyClosed
The local application closed the connection
Trait Implementations§
§impl Clone for ConnectionError
impl Clone for ConnectionError
§fn clone(&self) -> ConnectionError
fn clone(&self) -> ConnectionError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for ConnectionError
impl Debug for ConnectionError
§impl Display for ConnectionError
impl Display for ConnectionError
§impl Error for ConnectionError
impl Error for ConnectionError
§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
§impl From<Close> for ConnectionError
impl From<Close> for ConnectionError
§fn from(x: Close) -> ConnectionError
fn from(x: Close) -> ConnectionError
Converts to this type from the input type.
§impl From<ConnectionError> for Connecting
impl From<ConnectionError> for Connecting
§fn from(err: ConnectionError) -> Connecting
fn from(err: ConnectionError) -> Connecting
Converts to this type from the input type.
§impl From<ConnectionError> for ReadError
impl From<ConnectionError> for ReadError
§fn from(source: ConnectionError) -> ReadError
fn from(source: ConnectionError) -> ReadError
Converts to this type from the input type.
§impl From<ConnectionError> for Stream
impl From<ConnectionError> for Stream
§fn from(source: ConnectionError) -> Stream
fn from(source: ConnectionError) -> Stream
Converts to this type from the input type.
§impl From<ConnectionError> for WriteError
impl From<ConnectionError> for WriteError
§fn from(source: ConnectionError) -> WriteError
fn from(source: ConnectionError) -> WriteError
Converts to this type from the input type.
§impl From<Error> for ConnectionError
impl From<Error> for ConnectionError
§fn from(source: Error) -> ConnectionError
fn from(source: Error) -> ConnectionError
Converts to this type from the input type.
§impl PartialEq<ConnectionError> for ConnectionError
impl PartialEq<ConnectionError> for ConnectionError
§fn eq(&self, other: &ConnectionError) -> bool
fn eq(&self, other: &ConnectionError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ConnectionError
impl StructuralEq for ConnectionError
impl StructuralPartialEq for ConnectionError
Auto Trait Implementations§
impl RefUnwindSafe for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Unpin for ConnectionError
impl UnwindSafe for ConnectionError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.