pub enum RatchetPolicy {
NoRatchets,
Ratcheted,
RatchetsRequired,
}Expand description
RNS 1.4.2 Destination.enable_ratchets / Destination.enforce_ratchets.
One enum where the reference has two bool flags, so enforcing without ratchets (which would refuse every single packet) is unrepresentable.
Variants§
Trait Implementations§
Source§impl Clone for RatchetPolicy
impl Clone for RatchetPolicy
Source§fn clone(&self) -> RatchetPolicy
fn clone(&self) -> RatchetPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RatchetPolicy
Source§impl Debug for RatchetPolicy
impl Debug for RatchetPolicy
impl Eq for RatchetPolicy
Source§impl PartialEq for RatchetPolicy
impl PartialEq for RatchetPolicy
impl StructuralPartialEq for RatchetPolicy
Auto Trait Implementations§
impl Freeze for RatchetPolicy
impl RefUnwindSafe for RatchetPolicy
impl Send for RatchetPolicy
impl Sync for RatchetPolicy
impl Unpin for RatchetPolicy
impl UnsafeUnpin for RatchetPolicy
impl UnwindSafe for RatchetPolicy
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