Struct cosmwasm_vm::Backend [−][src]
pub struct Backend<A: BackendApi, S: Storage, Q: Querier> {
pub api: A,
pub storage: S,
pub querier: Q,
}Expand description
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
api: Astorage: Squerier: QAuto Trait Implementations
impl<A, S, Q> RefUnwindSafe for Backend<A, S, Q> where
A: RefUnwindSafe,
Q: RefUnwindSafe,
S: RefUnwindSafe,
impl<A, S, Q> UnwindSafe for Backend<A, S, Q> where
A: UnwindSafe,
Q: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more