pub struct Negotiation {
pub version: ProtocolVersion,
pub client_caps: CapabilitySet,
pub server_caps: CapabilitySet,
pub transport: TransportKind,
}Expand description
Everything a session’s peers and transport tell us, as one argument.
Fields§
§version: ProtocolVersionThe revision both sides agreed on.
client_caps: CapabilitySetWhat the client advertised.
server_caps: CapabilitySetWhat the server advertised.
transport: TransportKindThe transport the session runs over.
Implementations§
Source§impl Negotiation
impl Negotiation
Sourcepub const fn bare(version: ProtocolVersion, transport: TransportKind) -> Self
pub const fn bare(version: ProtocolVersion, transport: TransportKind) -> Self
The capabilities for a version, on one side, with nothing advertised.
Trait Implementations§
Source§impl Clone for Negotiation
impl Clone for Negotiation
impl Copy for Negotiation
Source§impl Debug for Negotiation
impl Debug for Negotiation
impl Eq for Negotiation
Source§impl PartialEq for Negotiation
impl PartialEq for Negotiation
impl StructuralPartialEq for Negotiation
Auto Trait Implementations§
impl Freeze for Negotiation
impl RefUnwindSafe for Negotiation
impl Send for Negotiation
impl Sync for Negotiation
impl Unpin for Negotiation
impl UnsafeUnpin for Negotiation
impl UnwindSafe for Negotiation
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