pub enum Restrictions {
None,
TLSv12,
TLSv13,
}
Expand description
Restrictions on allowed signature algorithms
Variants§
None
Allow all supported signature algorithms. This is the default.
TLSv12
Only support signature algorithms allowed by TLS1.2. This should not be used in other contexts.
TLSv13
Only support signature algorithms allowed by TLS1.3. This is a good choice for new protocols as well.
Trait Implementations§
Source§impl Clone for Restrictions
impl Clone for Restrictions
Source§fn clone(&self) -> Restrictions
fn clone(&self) -> Restrictions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Restrictions
impl Debug for Restrictions
Source§impl Default for Restrictions
impl Default for Restrictions
Source§impl Hash for Restrictions
impl Hash for Restrictions
Source§impl Ord for Restrictions
impl Ord for Restrictions
Source§fn cmp(&self, other: &Restrictions) -> Ordering
fn cmp(&self, other: &Restrictions) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Restrictions
impl PartialEq for Restrictions
Source§impl PartialOrd for Restrictions
impl PartialOrd for Restrictions
impl Copy for Restrictions
impl Eq for Restrictions
impl StructuralPartialEq for Restrictions
Auto Trait Implementations§
impl Freeze for Restrictions
impl RefUnwindSafe for Restrictions
impl Send for Restrictions
impl Sync for Restrictions
impl Unpin for Restrictions
impl UnwindSafe for Restrictions
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