pub struct Negotiated {
pub version: u16,
pub max_frame: u32,
pub capabilities: Capabilities,
pub agent: String,
pub host_versions: Vec<u16>,
pub agent_versions: Vec<u16>,
}Expand description
What the handshake settled.
Fields§
§version: u16The protocol version both sides use.
max_frame: u32The maximum frame payload both sides accept.
capabilities: CapabilitiesWhat the agent advertised.
agent: StringThe agent’s name and version from its hello.
host_versions: Vec<u16>§agent_versions: Vec<u16>Trait Implementations§
Source§impl Clone for Negotiated
impl Clone for Negotiated
Source§impl Debug for Negotiated
impl Debug for Negotiated
impl Eq for Negotiated
Source§impl PartialEq for Negotiated
impl PartialEq for Negotiated
impl StructuralPartialEq for Negotiated
Auto Trait Implementations§
impl Freeze for Negotiated
impl RefUnwindSafe for Negotiated
impl Send for Negotiated
impl Sync for Negotiated
impl Unpin for Negotiated
impl UnsafeUnpin for Negotiated
impl UnwindSafe for Negotiated
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