Struct rhaki_cw_multi_test::Router
source · pub struct Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate> {
pub bank: Bank,
pub custom: Custom,
pub staking: Staking,
pub distribution: Distr,
pub ibc: Ibc,
pub gov: Gov,
pub stargate: Stargate,
/* private fields */
}
Expand description
The Router plays a critical role in managing and directing transactions within the Cosmos blockchain.
Fields§
§bank: Bank
Bank module instance to be used in this Router.
custom: Custom
Custom module instance to be used in this Router.
staking: Staking
Staking module instance to be used in this Router.
distribution: Distr
Distribution module instance to be used in this Router.
ibc: Ibc
IBC module instance to be used in this Router.
gov: Gov
Governance module instance to be used in this Router.
stargate: Stargate
Stargate module instance to be used in this Router.
Implementations§
source§impl<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT, StargateT> Router<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT, StargateT>where
CustomT::ExecT: CustomMsg + 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,
StargateT: Stargate,
impl<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT, StargateT> Router<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT, StargateT>where
CustomT::ExecT: CustomMsg + 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,
StargateT: Stargate,
Trait Implementations§
source§impl<Bank: Clone, Custom: Clone, Wasm: Clone, Staking: Clone, Distr: Clone, Ibc: Clone, Gov: Clone, Stargate: Clone> Clone for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate>
impl<Bank: Clone, Custom: Clone, Wasm: Clone, Staking: Clone, Distr: Clone, Ibc: Clone, Gov: Clone, Stargate: Clone> Clone for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate>
source§impl<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT, StargateT> CosmosRouter for Router<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT, StargateT>where
CustomT::ExecT: CustomMsg + 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,
StargateT: Stargate,
impl<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT, StargateT> CosmosRouter for Router<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT, StargateT>where
CustomT::ExecT: CustomMsg + 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,
StargateT: Stargate,
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
Auto Trait Implementations§
impl<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate> Freeze for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate>
impl<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate> RefUnwindSafe for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate>where
Wasm: RefUnwindSafe,
Bank: RefUnwindSafe,
Custom: RefUnwindSafe,
Staking: RefUnwindSafe,
Distr: RefUnwindSafe,
Ibc: RefUnwindSafe,
Gov: RefUnwindSafe,
Stargate: RefUnwindSafe,
impl<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate> Send for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate>
impl<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate> Sync for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate>
impl<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate> Unpin for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate>
impl<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate> UnwindSafe for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate>where
Wasm: UnwindSafe,
Bank: UnwindSafe,
Custom: UnwindSafe,
Staking: UnwindSafe,
Distr: UnwindSafe,
Ibc: UnwindSafe,
Gov: UnwindSafe,
Stargate: UnwindSafe,
Blanket Implementations§
source§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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more