pub struct StargateKeeper<ExecC, QueryC> { /* private fields */ }Implementations§
Source§impl<'a, ExecC, QueryC> StargateKeeper<ExecC, QueryC>
impl<'a, ExecC, QueryC> StargateKeeper<ExecC, QueryC>
pub fn new() -> Self
pub fn register_msg( &mut self, type_url: &str, handler: Box<dyn StargateMessageHandler<ExecC, QueryC>>, )
pub fn register_query( &mut self, type_url: &str, handler: Box<dyn StargateQueryHandler>, )
Trait Implementations§
Source§impl<'a, ExecC, QueryC: CustomQuery> Stargate<ExecC, QueryC> for StargateKeeper<ExecC, QueryC>
impl<'a, ExecC, QueryC: CustomQuery> Stargate<ExecC, QueryC> for StargateKeeper<ExecC, QueryC>
fn execute( &self, api: &dyn Api, storage: &mut dyn Storage, router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>, block: &BlockInfo, sender: Addr, msg: StargateMsg, ) -> Result<AppResponse>
fn sudo( &self, _api: &dyn Api, _storage: &mut dyn Storage, _router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>, _block: &BlockInfo, _msg: Empty, ) -> Result<AppResponse>
fn query( &self, api: &dyn Api, storage: &dyn Storage, querier: &dyn Querier, block: &BlockInfo, request: StargateMsg, ) -> Result<Binary>
Auto Trait Implementations§
impl<ExecC, QueryC> Freeze for StargateKeeper<ExecC, QueryC>
impl<ExecC, QueryC> !RefUnwindSafe for StargateKeeper<ExecC, QueryC>
impl<ExecC, QueryC> !Send for StargateKeeper<ExecC, QueryC>
impl<ExecC, QueryC> !Sync for StargateKeeper<ExecC, QueryC>
impl<ExecC, QueryC> Unpin for StargateKeeper<ExecC, QueryC>
impl<ExecC, QueryC> !UnwindSafe for StargateKeeper<ExecC, QueryC>
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