[][src]Struct cosmwasm::traits::Extern

pub struct Extern<S: Storage, A: Api> {
    pub storage: S,
    pub api: A,
}

Holds all external dependencies of the contract. Designed to allow easy dependency injection at runtime. This cannot be copied or cloned since it would behave differently for mock storages and a bridge storage in the VM.

Fields

storage: Sapi: A

Auto Trait Implementations

impl<S, A> RefUnwindSafe for Extern<S, A> where
    A: RefUnwindSafe,
    S: RefUnwindSafe

impl<S, A> Send for Extern<S, A> where
    S: Send

impl<S, A> Sync for Extern<S, A> where
    A: Sync,
    S: Sync

impl<S, A> Unpin for Extern<S, A> where
    A: Unpin,
    S: Unpin

impl<S, A> UnwindSafe for Extern<S, A> where
    A: UnwindSafe,
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.