pub struct NegotiatedParams {
pub version: u16,
pub features: Features,
pub remote_agent: Option<String>,
}Expand description
Result of successful negotiation.
Fields§
§version: u16The negotiated protocol version.
features: FeaturesThe negotiated feature set (intersection of both peers).
remote_agent: Option<String>The remote peer’s agent string, if provided.
Trait Implementations§
Source§impl Clone for NegotiatedParams
impl Clone for NegotiatedParams
Source§fn clone(&self) -> NegotiatedParams
fn clone(&self) -> NegotiatedParams
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 moreAuto Trait Implementations§
impl Freeze for NegotiatedParams
impl RefUnwindSafe for NegotiatedParams
impl Send for NegotiatedParams
impl Sync for NegotiatedParams
impl Unpin for NegotiatedParams
impl UnwindSafe for NegotiatedParams
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