[−][src]Struct win_crypto_ng::asymmetric::AsymmetricAlgorithm
Asymmetric algorithm provider.
Implementations
impl AsymmetricAlgorithm
[src]
pub fn open(id: AsymmetricAlgorithmId) -> Result<Self>
[src]
Open an asymmetric algorithm provider
Examples
let algo = AsymmetricAlgorithm::open(AsymmetricAlgorithmId::Rsa); assert!(algo.is_ok());
pub fn id(&self) -> Result<AsymmetricAlgorithmId>
[src]
Examples
let algo = AsymmetricAlgorithm::open(AsymmetricAlgorithmId::Rsa).unwrap(); assert_eq!(algo.id(), Ok(AsymmetricAlgorithmId::Rsa));
Auto Trait Implementations
impl RefUnwindSafe for AsymmetricAlgorithm
impl !Send for AsymmetricAlgorithm
impl !Sync for AsymmetricAlgorithm
impl Unpin for AsymmetricAlgorithm
impl UnwindSafe for AsymmetricAlgorithm
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,