Enum bonsaidb::server::fabruic::error::Connecting
pub enum Connecting {
ProtocolMismatch,
Connection(ConnectionError),
}
Expand description
Error completing connection with peer with
Incoming::type
or
Incoming::accept
.
Variants§
ProtocolMismatch
The peer did not accept any of the protocols specified.
Connection(ConnectionError)
An error completing the connection.
Trait Implementations§
§impl Clone for Connecting
impl Clone for Connecting
§fn clone(&self) -> Connecting
fn clone(&self) -> Connecting
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 Connecting
impl Debug for Connecting
§impl Display for Connecting
impl Display for Connecting
§impl Error for Connecting
impl Error for Connecting
1.30.0 · source§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<Connecting> for Error
impl From<Connecting> for Error
§fn from(other: Connecting) -> Error
fn from(other: Connecting) -> Error
Converts to this type from the input type.
source§impl From<Connecting> for Error
impl From<Connecting> for Error
source§fn from(other: Connecting) -> Error
fn from(other: Connecting) -> Error
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 PartialEq<Connecting> for Connecting
impl PartialEq<Connecting> for Connecting
§fn eq(&self, other: &Connecting) -> bool
fn eq(&self, other: &Connecting) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Connecting
impl StructuralEq for Connecting
impl StructuralPartialEq for Connecting
Auto Trait Implementations§
impl RefUnwindSafe for Connecting
impl Send for Connecting
impl Sync for Connecting
impl Unpin for Connecting
impl UnwindSafe for Connecting
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.