Struct mux::Init [] [src]

pub struct Init {
    pub version: u16,
    pub headers: Contexts,
}

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

Mux protocol version.

Additional negotiation related information.

Trait Implementations

impl PartialEq for Init
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Init
[src]

impl Debug for Init
[src]

Formats the value using the given formatter.