Struct ratchet_ext::RsvBits
source · 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§
Auto Trait Implementations§
impl RefUnwindSafe for RsvBits
impl Send for RsvBits
impl Sync for RsvBits
impl Unpin for RsvBits
impl UnwindSafe for RsvBits
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