Enum x509_signature::Restrictions
source · [−]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
sourceimpl Clone for Restrictions
impl Clone for Restrictions
sourcefn clone(&self) -> Restrictions
fn clone(&self) -> Restrictions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Restrictions
impl Debug for Restrictions
sourceimpl Default for Restrictions
impl Default for Restrictions
sourceimpl Hash for Restrictions
impl Hash for Restrictions
sourceimpl Ord for Restrictions
impl Ord for Restrictions
sourceimpl PartialEq<Restrictions> for Restrictions
impl PartialEq<Restrictions> for Restrictions
sourceimpl PartialOrd<Restrictions> for Restrictions
impl PartialOrd<Restrictions> for Restrictions
sourcefn partial_cmp(&self, other: &Restrictions) -> Option<Ordering>
fn partial_cmp(&self, other: &Restrictions) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Restrictions
impl Eq for Restrictions
impl StructuralEq for Restrictions
impl StructuralPartialEq for Restrictions
Auto Trait Implementations
impl RefUnwindSafe for Restrictions
impl Send for Restrictions
impl Sync for Restrictions
impl Unpin for Restrictions
impl UnwindSafe for Restrictions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more