pub struct Cryptex {
pub send: bool,
pub require: bool,
}Expand description
How a Context uses Cryptex (RFC 9335).
The default uses none of it: packets are protected as RFC 3711 has it, and a received packet marked as Cryptex is still decrypted as one.
Fields§
§send: boolProtect outgoing packets that carry CSRCs or RFC 8285 header extensions with Cryptex.
Set it only once the peer has signalled that it receives Cryptex (a=cryptex).
require: boolCryptex is mandatory (RFC 9335 section 5.2): refuse received packets that carry CSRCs
or header extensions without it, and refuse to protect a packet that has CSRCs or a
header extension and would leave without it (send unset, or an extension Cryptex
does not apply to).
Trait Implementations§
impl Copy for Cryptex
impl Eq for Cryptex
impl StructuralPartialEq for Cryptex
Auto Trait Implementations§
impl Forget for Cryptex
impl Freeze for Cryptex
impl Move for Cryptex
impl RefUnwindSafe for Cryptex
impl Send for Cryptex
impl Sync for Cryptex
impl Unpin for Cryptex
impl UnsafeUnpin for Cryptex
impl UnwindSafe for Cryptex
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