Skip to main content

TryRecoverFn

Trait TryRecoverFn 

pub trait TryRecoverFn<Item, T>: Fn(Item) -> Result<T, RecoveryError> + Sync { }
Available on crate feature rayon only.
Expand description

Trait for decode functions that can be used with try_recover_signers.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

§

impl<Item, T, F> TryRecoverFn<Item, T> for F
where F: Fn(Item) -> Result<T, RecoveryError> + Sync,