Struct rhaki_cw_multi_test::Router
source · pub struct Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov> {
pub bank: Bank,
pub custom: Custom,
pub staking: Staking,
pub distribution: Distr,
pub ibc: Ibc,
pub gov: Gov,
/* private fields */
}
Fields§
§bank: Bank
§custom: Custom
§staking: Staking
§distribution: Distr
§ibc: Ibc
§gov: Gov
Implementations§
source§impl<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT> Router<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT>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,
IbcT: Ibc,
GovT: Gov,
impl<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT> Router<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT>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, IbcT: Ibc, GovT: Gov,
Trait Implementations§
source§impl<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT> CosmosRouter for Router<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT>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,
IbcT: Ibc,
GovT: Gov,
impl<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT> CosmosRouter for Router<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT>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, IbcT: Ibc, GovT: Gov,
source§fn 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, Ibc, Gov> RefUnwindSafe for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov>where Bank: RefUnwindSafe, Custom: RefUnwindSafe, Distr: RefUnwindSafe, Gov: RefUnwindSafe, Ibc: RefUnwindSafe, Staking: RefUnwindSafe, Wasm: RefUnwindSafe,
impl<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov> Send for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov>where Bank: Send, Custom: Send, Distr: Send, Gov: Send, Ibc: Send, Staking: Send, Wasm: Send,
impl<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov> Sync for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov>where Bank: Sync, Custom: Sync, Distr: Sync, Gov: Sync, Ibc: Sync, Staking: Sync, Wasm: Sync,
impl<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov> Unpin for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov>where Bank: Unpin, Custom: Unpin, Distr: Unpin, Gov: Unpin, Ibc: Unpin, Staking: Unpin, Wasm: Unpin,
impl<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov> UnwindSafe for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov>where Bank: UnwindSafe, Custom: UnwindSafe, Distr: UnwindSafe, Gov: UnwindSafe, Ibc: UnwindSafe, Staking: UnwindSafe, Wasm: UnwindSafe,
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more