pub struct WebPkiSupportedAlgorithms { /* private fields */ }Expand description
Describes which webpki signature verification algorithms are supported and
how they map to TLS SignatureSchemes.
Create one with WebPkiSupportedAlgorithms::new, which can be done in const-context.
Implementations§
Source§impl WebPkiSupportedAlgorithms
impl WebPkiSupportedAlgorithms
Sourcepub const fn new(
all: &'static [&'static dyn SignatureVerificationAlgorithm],
mapping: &'static [(SignatureScheme, &'static [&'static dyn SignatureVerificationAlgorithm])],
) -> Result<Self, ApiMisuse>
pub const fn new( all: &'static [&'static dyn SignatureVerificationAlgorithm], mapping: &'static [(SignatureScheme, &'static [&'static dyn SignatureVerificationAlgorithm])], ) -> Result<Self, ApiMisuse>
Creating a WebPkiSupportedAlgorithms and checking its consistency.
This is intended to only be called in const context, so the panics are compile-time.
Sourcepub fn supported_schemes(&self) -> Vec<SignatureScheme>
pub fn supported_schemes(&self) -> Vec<SignatureScheme>
Return all the scheme items in mapping, maintaining order.
Sourcepub fn mapping(
&self,
) -> &'static [(SignatureScheme, &'static [&'static dyn SignatureVerificationAlgorithm])]
pub fn mapping( &self, ) -> &'static [(SignatureScheme, &'static [&'static dyn SignatureVerificationAlgorithm])]
Accessor for the mapping field.
Trait Implementations§
Source§impl Clone for WebPkiSupportedAlgorithms
impl Clone for WebPkiSupportedAlgorithms
Source§fn clone(&self) -> WebPkiSupportedAlgorithms
fn clone(&self) -> WebPkiSupportedAlgorithms
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 WebPkiSupportedAlgorithms
impl Debug for WebPkiSupportedAlgorithms
Source§impl Hash for WebPkiSupportedAlgorithms
impl Hash for WebPkiSupportedAlgorithms
impl Copy for WebPkiSupportedAlgorithms
Auto Trait Implementations§
impl Freeze for WebPkiSupportedAlgorithms
impl !RefUnwindSafe for WebPkiSupportedAlgorithms
impl Send for WebPkiSupportedAlgorithms
impl Sync for WebPkiSupportedAlgorithms
impl Unpin for WebPkiSupportedAlgorithms
impl UnsafeUnpin for WebPkiSupportedAlgorithms
impl !UnwindSafe for WebPkiSupportedAlgorithms
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