pub struct NegotiatedPayload {
pub mode: PayloadMode,
pub fallback_chain: Vec<PayloadMode>,
}Expand description
Result of payload mode negotiation between two delegates.
Fields§
§mode: PayloadModeThe agreed-upon mode for this session.
fallback_chain: Vec<PayloadMode>Fallback chain if the primary mode fails mid-session.
Trait Implementations§
Source§impl Clone for NegotiatedPayload
impl Clone for NegotiatedPayload
Source§fn clone(&self) -> NegotiatedPayload
fn clone(&self) -> NegotiatedPayload
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 NegotiatedPayload
impl Debug for NegotiatedPayload
Source§impl Default for NegotiatedPayload
impl Default for NegotiatedPayload
Source§impl<'de> Deserialize<'de> for NegotiatedPayload
impl<'de> Deserialize<'de> for NegotiatedPayload
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
Auto Trait Implementations§
impl Freeze for NegotiatedPayload
impl RefUnwindSafe for NegotiatedPayload
impl Send for NegotiatedPayload
impl Sync for NegotiatedPayload
impl Unpin for NegotiatedPayload
impl UnsafeUnpin for NegotiatedPayload
impl UnwindSafe for NegotiatedPayload
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