pub struct AlgorithmRegistry { /* private fields */ }Expand description
Central registry of all algorithms
Implementations§
Source§impl AlgorithmRegistry
impl AlgorithmRegistry
Sourcepub fn supported_algorithms(&self) -> Vec<Algorithm>
pub fn supported_algorithms(&self) -> Vec<Algorithm>
Get all supported algorithms
Sourcepub fn algorithms_by_category(
&self,
category: AlgorithmCategory,
) -> Vec<Algorithm>
pub fn algorithms_by_category( &self, category: AlgorithmCategory, ) -> Vec<Algorithm>
Get algorithms by category
Sourcepub fn algorithms_by_security_level(&self, level: u32) -> Vec<Algorithm>
pub fn algorithms_by_security_level(&self, level: u32) -> Vec<Algorithm>
Get algorithms by security level
Sourcepub fn get_metadata(&self, algorithm: &Algorithm) -> Option<&AlgorithmMetadata>
pub fn get_metadata(&self, algorithm: &Algorithm) -> Option<&AlgorithmMetadata>
Get algorithm metadata
Sourcepub fn is_enabled(&self, algorithm: &Algorithm) -> bool
pub fn is_enabled(&self, algorithm: &Algorithm) -> bool
Check if algorithm is enabled
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AlgorithmRegistry
impl RefUnwindSafe for AlgorithmRegistry
impl Send for AlgorithmRegistry
impl Sync for AlgorithmRegistry
impl Unpin for AlgorithmRegistry
impl UnsafeUnpin for AlgorithmRegistry
impl UnwindSafe for AlgorithmRegistry
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