pub enum NegotiationMsg {
Claim {
symbols: Vec<String>,
reason: String,
},
ProposeSplit {
mine: Vec<String>,
yours: Vec<String>,
},
Yield {
set: String,
to: Option<String>,
},
Counter {
note: String,
},
Accept,
Decline {
note: String,
},
}Variants§
Claim
“I need these symbols for this reason.”
ProposeSplit
Offer to split work: the sender keeps mine, the receiver gets yours.
Yield
Give up the named lease set in favour of the receiver. With to the
set moves to that session in this entry, so nobody can take it in
between; without, it is freed.
Counter
Accept
Decline
Trait Implementations§
Source§impl Clone for NegotiationMsg
impl Clone for NegotiationMsg
Source§impl Debug for NegotiationMsg
impl Debug for NegotiationMsg
Source§impl<'de> Deserialize<'de> for NegotiationMsg
impl<'de> Deserialize<'de> for NegotiationMsg
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NegotiationMsg
Source§impl PartialEq for NegotiationMsg
impl PartialEq for NegotiationMsg
Source§impl Serialize for NegotiationMsg
impl Serialize for NegotiationMsg
impl StructuralPartialEq for NegotiationMsg
Auto Trait Implementations§
impl Forget for NegotiationMsg
impl Freeze for NegotiationMsg
impl RefUnwindSafe for NegotiationMsg
impl Send for NegotiationMsg
impl Sync for NegotiationMsg
impl Unpin for NegotiationMsg
impl UnsafeUnpin for NegotiationMsg
impl UnwindSafe for NegotiationMsg
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.