pub struct Welcome {
pub versions: Vec<u16>,
pub version: Option<u16>,
pub max_frame: u32,
pub error: Option<Error>,
}Expand description
The host’s answer to a hello: the negotiated version and frame size, or the reason it refuses the connection before closing it.
On the wire: {0: 1, 1: versions, ?2: version, 3: max_frame, ?4: error}.
Fields§
§versions: Vec<u16>Protocol versions the host speaks.
version: Option<u16>The selected version: the highest both sides speak. Absent on refusal.
max_frame: u32The negotiated maximum frame payload: the smaller of both sides’.
error: Option<Error>Why the host refuses the connection.
Trait Implementations§
impl Eq for Welcome
impl StructuralPartialEq for Welcome
Auto Trait Implementations§
impl Freeze for Welcome
impl RefUnwindSafe for Welcome
impl Send for Welcome
impl Sync for Welcome
impl Unpin for Welcome
impl UnsafeUnpin for Welcome
impl UnwindSafe for Welcome
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