pub struct RsvBits {
    pub rsv1: bool,
    pub rsv2: bool,
    pub rsv3: bool,
}
Expand description

A structure containing the bits that an extension may set high during a session.

If any bits are received by a peer during a session that are different to what this structure returns then the session is failed.

Fields

rsv1: bool

Whether rsv1 is allowed to be high.

rsv2: bool

Whether rsv2 is allowed to be high.

rsv3: bool

Whether rsv3 is allowed to be high.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.