Enum adapter::primitives::AdapterTypes
source · Expand description
A helper type that allows you to use either of them
and dereference the adapter when calling for example an application
with a concrete implementation of the crate::Adapter
.
Variants
Dummy(Box<Adapter<S>>)
Ethereum(Box<Adapter<Ethereum<ES>, S>>)
Implementations
sourceimpl<S, ES: WalletState> AdapterTypes<S, ES>
impl<S, ES: WalletState> AdapterTypes<S, ES>
Auto Trait Implementations
impl<S, ES> !RefUnwindSafe for AdapterTypes<S, ES>
impl<S, ES> Send for AdapterTypes<S, ES>where
ES: Send + Sync,
S: Send,
impl<S, ES> Sync for AdapterTypes<S, ES>where
ES: Send + Sync,
S: Sync,
impl<S, ES> Unpin for AdapterTypes<S, ES>
impl<S, ES> !UnwindSafe for AdapterTypes<S, ES>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more