pub enum ConnectionReject {
Rejecting(RejectReason),
Rejected(RejectReason),
}Variants§
Trait Implementations§
source§impl Debug for ConnectionReject
impl Debug for ConnectionReject
source§impl Display for ConnectionReject
impl Display for ConnectionReject
source§impl Error for ConnectionReject
impl Error for ConnectionReject
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()
source§impl PartialEq<ConnectionReject> for ConnectionReject
impl PartialEq<ConnectionReject> for ConnectionReject
source§fn eq(&self, other: &ConnectionReject) -> bool
fn eq(&self, other: &ConnectionReject) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for ConnectionReject
impl StructuralEq for ConnectionReject
impl StructuralPartialEq for ConnectionReject
Auto Trait Implementations§
impl RefUnwindSafe for ConnectionReject
impl Send for ConnectionReject
impl Sync for ConnectionReject
impl Unpin for ConnectionReject
impl UnwindSafe for ConnectionReject
Blanket Implementations§
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.