pub enum RejectReason {
ProtocolMismatch,
Auth,
}Expand description
Reason a server-side rejection occurred during the handshake.
Variants§
ProtocolMismatch
The client’s protocol ID did not match the server’s compiled protocol.
Auth
The server application explicitly rejected the client’s auth message.
Trait Implementations§
Source§impl Clone for RejectReason
impl Clone for RejectReason
Source§fn clone(&self) -> RejectReason
fn clone(&self) -> RejectReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RejectReason
Source§impl Debug for RejectReason
impl Debug for RejectReason
impl Eq for RejectReason
Source§impl PartialEq for RejectReason
impl PartialEq for RejectReason
Source§impl Serde for RejectReason
impl Serde for RejectReason
impl StructuralPartialEq for RejectReason
Auto Trait Implementations§
impl Freeze for RejectReason
impl RefUnwindSafe for RejectReason
impl Send for RejectReason
impl Sync for RejectReason
impl Unpin for RejectReason
impl UnsafeUnpin for RejectReason
impl UnwindSafe for RejectReason
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