Struct cw_multi_test::Router
source · [−]pub struct Router<Bank, Custom, Wasm, Staking, Distr> {
pub bank: Bank,
pub custom: Custom,
pub staking: Staking,
pub distribution: Distr,
/* private fields */
}
Fields
bank: Bank
custom: Custom
staking: Staking
distribution: Distr
Implementations
sourceimpl<BankT, CustomT, WasmT, StakingT, DistrT> Router<BankT, CustomT, WasmT, StakingT, DistrT> where
CustomT::ExecT: Clone + Debug + PartialEq + JsonSchema + DeserializeOwned + 'static,
CustomT::QueryT: CustomQuery + DeserializeOwned + 'static,
CustomT: Module,
WasmT: Wasm<CustomT::ExecT, CustomT::QueryT>,
BankT: Bank,
StakingT: Staking,
DistrT: Distribution,
impl<BankT, CustomT, WasmT, StakingT, DistrT> Router<BankT, CustomT, WasmT, StakingT, DistrT> where
CustomT::ExecT: Clone + Debug + PartialEq + JsonSchema + DeserializeOwned + 'static,
CustomT::QueryT: CustomQuery + DeserializeOwned + 'static,
CustomT: Module,
WasmT: Wasm<CustomT::ExecT, CustomT::QueryT>,
BankT: Bank,
StakingT: Staking,
DistrT: Distribution,
Trait Implementations
sourceimpl<BankT, CustomT, WasmT, StakingT, DistrT> CosmosRouter for Router<BankT, CustomT, WasmT, StakingT, DistrT> where
CustomT::ExecT: Debug + Clone + PartialEq + JsonSchema + DeserializeOwned + 'static,
CustomT::QueryT: CustomQuery + DeserializeOwned + 'static,
CustomT: Module,
WasmT: Wasm<CustomT::ExecT, CustomT::QueryT>,
BankT: Bank,
StakingT: Staking,
DistrT: Distribution,
impl<BankT, CustomT, WasmT, StakingT, DistrT> CosmosRouter for Router<BankT, CustomT, WasmT, StakingT, DistrT> where
CustomT::ExecT: Debug + Clone + PartialEq + JsonSchema + DeserializeOwned + 'static,
CustomT::QueryT: CustomQuery + DeserializeOwned + 'static,
CustomT: Module,
WasmT: Wasm<CustomT::ExecT, CustomT::QueryT>,
BankT: Bank,
StakingT: Staking,
DistrT: Distribution,
sourcefn query(
&self,
api: &dyn Api,
storage: &dyn Storage,
block: &BlockInfo,
request: QueryRequest<Self::QueryC>
) -> AnyResult<Binary>
fn query(
&self,
api: &dyn Api,
storage: &dyn Storage,
block: &BlockInfo,
request: QueryRequest<Self::QueryC>
) -> AnyResult<Binary>
this is used by RouterQuerier
to actual implement the Querier
interface.
you most likely want to use router.querier(storage, block).wrap()
to get a
QuerierWrapper to interact with
type ExecC = <CustomT as Module>::ExecT
type QueryC = <CustomT as Module>::QueryT
fn execute(
&self,
api: &dyn Api,
storage: &mut dyn Storage,
block: &BlockInfo,
sender: Addr,
msg: CosmosMsg<Self::ExecC>
) -> AnyResult<AppResponse>
fn sudo(
&self,
api: &dyn Api,
storage: &mut dyn Storage,
block: &BlockInfo,
msg: SudoMsg
) -> AnyResult<AppResponse>
Auto Trait Implementations
impl<Bank, Custom, Wasm, Staking, Distr> RefUnwindSafe for Router<Bank, Custom, Wasm, Staking, Distr> where
Bank: RefUnwindSafe,
Custom: RefUnwindSafe,
Distr: RefUnwindSafe,
Staking: RefUnwindSafe,
Wasm: RefUnwindSafe,
impl<Bank, Custom, Wasm, Staking, Distr> Send for Router<Bank, Custom, Wasm, Staking, Distr> where
Bank: Send,
Custom: Send,
Distr: Send,
Staking: Send,
Wasm: Send,
impl<Bank, Custom, Wasm, Staking, Distr> Sync for Router<Bank, Custom, Wasm, Staking, Distr> where
Bank: Sync,
Custom: Sync,
Distr: Sync,
Staking: Sync,
Wasm: Sync,
impl<Bank, Custom, Wasm, Staking, Distr> Unpin for Router<Bank, Custom, Wasm, Staking, Distr> where
Bank: Unpin,
Custom: Unpin,
Distr: Unpin,
Staking: Unpin,
Wasm: Unpin,
impl<Bank, Custom, Wasm, Staking, Distr> UnwindSafe for Router<Bank, Custom, Wasm, Staking, Distr> where
Bank: UnwindSafe,
Custom: UnwindSafe,
Distr: UnwindSafe,
Staking: UnwindSafe,
Wasm: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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