pub enum NegotiationDecision {
Accept,
Reject(RejectionReason),
}Expand description
Explicit application decision after the peer HELLO is available.
Variants§
Accept
Accept the peer’s bounded opaque HELLO payload and negotiated facts.
Reject(RejectionReason)
Cleanly reject with a fixed nonzero application reason.
Trait Implementations§
Source§impl Clone for NegotiationDecision
impl Clone for NegotiationDecision
Source§fn clone(&self) -> NegotiationDecision
fn clone(&self) -> NegotiationDecision
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 NegotiationDecision
Source§impl Debug for NegotiationDecision
impl Debug for NegotiationDecision
impl Eq for NegotiationDecision
Source§impl PartialEq for NegotiationDecision
impl PartialEq for NegotiationDecision
impl StructuralPartialEq for NegotiationDecision
Auto Trait Implementations§
impl Freeze for NegotiationDecision
impl RefUnwindSafe for NegotiationDecision
impl Send for NegotiationDecision
impl Sync for NegotiationDecision
impl Unpin for NegotiationDecision
impl UnsafeUnpin for NegotiationDecision
impl UnwindSafe for NegotiationDecision
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