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: GovImplementations§
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<Bank: Clone, Custom: Clone, Wasm: Clone, Staking: Clone, Distr: Clone, Ibc: Clone, Gov: Clone> Clone for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov>
impl<Bank: Clone, Custom: Clone, Wasm: Clone, Staking: Clone, Distr: Clone, Ibc: Clone, Gov: Clone> Clone for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov>
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>
fn get_querier_storage( &self, storage: &dyn Storage, ) -> AnyResult<QuerierStorage>
Auto Trait Implementations§
impl<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov> Freeze for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov>
impl<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov> RefUnwindSafe for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov>where
Wasm: RefUnwindSafe,
Bank: RefUnwindSafe,
Custom: RefUnwindSafe,
Staking: RefUnwindSafe,
Distr: RefUnwindSafe,
Ibc: RefUnwindSafe,
Gov: RefUnwindSafe,
impl<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov> Send for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov>
impl<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov> Sync for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov>
impl<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov> Unpin for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov>
impl<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov> UnwindSafe for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov>where
Wasm: UnwindSafe,
Bank: UnwindSafe,
Custom: UnwindSafe,
Staking: UnwindSafe,
Distr: UnwindSafe,
Ibc: UnwindSafe,
Gov: UnwindSafe,
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Upcastable for T
impl<T> Upcastable for T
Source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
Source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref