Struct snow::resolvers::FallbackResolver [−][src]
pub struct FallbackResolver { /* fields omitted */ }
Expand description
A helper resolver that can opportunistically use one resolver, but can fallback to another if the first didn’t have an implementation for a given primitive.
Implementations
impl FallbackResolver
[src]
impl FallbackResolver
[src]pub fn new(
preferred: BoxedCryptoResolver,
fallback: BoxedCryptoResolver
) -> Self
[src]
pub fn new(
preferred: BoxedCryptoResolver,
fallback: BoxedCryptoResolver
) -> Self
[src]Create a new FallbackResolver
that holds the primary and secondary resolver.
Trait Implementations
impl CryptoResolver for FallbackResolver
[src]
impl CryptoResolver for FallbackResolver
[src]fn resolve_rng(&self) -> Option<Box<dyn Random>>
[src]
fn resolve_rng(&self) -> Option<Box<dyn Random>>
[src]Provide an implementation of the Random trait or None if none available.
fn resolve_dh(&self, choice: &DHChoice) -> Option<Box<dyn Dh>>
[src]
fn resolve_dh(&self, choice: &DHChoice) -> Option<Box<dyn Dh>>
[src]Provide an implementation of the Dh trait for the given DHChoice or None if unavailable.
fn resolve_hash(&self, choice: &HashChoice) -> Option<Box<dyn Hash>>
[src]
fn resolve_hash(&self, choice: &HashChoice) -> Option<Box<dyn Hash>>
[src]Provide an implementation of the Hash trait for the given HashChoice or None if unavailable.
fn resolve_cipher(&self, choice: &CipherChoice) -> Option<Box<dyn Cipher>>
[src]
fn resolve_cipher(&self, choice: &CipherChoice) -> Option<Box<dyn Cipher>>
[src]Provide an implementation of the Cipher trait for the given CipherChoice or None if unavailable.
Auto Trait Implementations
impl !RefUnwindSafe for FallbackResolver
impl Send for FallbackResolver
impl !Sync for FallbackResolver
impl Unpin for FallbackResolver
impl !UnwindSafe for FallbackResolver
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,