pub struct Init {
pub version: u16,
pub headers: Contexts,
}Expand description
Representation of a mux Tinit and Rinit frame.
Tinit and Rinit frames are used for negotiation of the mux protocol
version and behavior. A Tinit is typically sent by the client at the
beginning of the session. Until a Rinit is received the client cannot
issue any more T messages. Once the Rinit is received, the session state
is considered reset. The version return in Rinit is the accepted protocol
version and may be lower than that of the issued Tinit.
Fields§
§version: u16Mux protocol version.
headers: ContextsAdditional negotiation related information.
Trait Implementations§
impl Eq for Init
impl StructuralPartialEq for Init
Auto Trait Implementations§
impl Freeze for Init
impl RefUnwindSafe for Init
impl Send for Init
impl Sync for Init
impl Unpin for Init
impl UnwindSafe for Init
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