pub enum NegotiationResponse {
SendMessage(NegotiationMessage),
Complete(NegotiationSession),
Failed(String),
None,
}Expand description
Response from handling a negotiation message
Variants§
SendMessage(NegotiationMessage)
Send this message to the remote party
Complete(NegotiationSession)
Negotiation complete with session
Failed(String)
Negotiation failed
None
No action needed
Trait Implementations§
Source§impl Clone for NegotiationResponse
impl Clone for NegotiationResponse
Source§fn clone(&self) -> NegotiationResponse
fn clone(&self) -> NegotiationResponse
Returns a duplicate 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 moreSource§impl Debug for NegotiationResponse
impl Debug for NegotiationResponse
Source§impl PartialEq for NegotiationResponse
impl PartialEq for NegotiationResponse
impl StructuralPartialEq for NegotiationResponse
Auto Trait Implementations§
impl Freeze for NegotiationResponse
impl RefUnwindSafe for NegotiationResponse
impl Send for NegotiationResponse
impl Sync for NegotiationResponse
impl Unpin for NegotiationResponse
impl UnwindSafe for NegotiationResponse
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