Struct snow::resolvers::FallbackResolver [−][src]
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]
pub fn new(
preferred: BoxedCryptoResolver,
fallback: BoxedCryptoResolver
) -> Self
[src]
preferred: BoxedCryptoResolver,
fallback: BoxedCryptoResolver
) -> Self
Create a new FallbackResolver
that holds the primary and secondary resolver.
Trait Implementations
impl CryptoResolver for FallbackResolver
[src]
fn resolve_rng(&self) -> Option<Box<dyn Random>>
[src]
fn resolve_dh(&self, choice: &DHChoice) -> Option<Box<dyn Dh>>
[src]
fn resolve_hash(&self, choice: &HashChoice) -> Option<Box<dyn Hash>>
[src]
fn resolve_cipher(&self, choice: &CipherChoice) -> Option<Box<dyn Cipher>>
[src]
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> 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,
pub 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> Same<T> for T
[src]
type Output = T
Should always be Self
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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,