pub struct MockRouter<ExecC, QueryC>(/* private fields */);Expand description
Router for mocking purposes.
Implementations§
Source§impl<ExecC, QueryC> MockRouter<ExecC, QueryC>
impl<ExecC, QueryC> MockRouter<ExecC, QueryC>
Sourcepub fn new() -> Selfwhere
QueryC: CustomQuery,
pub fn new() -> Selfwhere
QueryC: CustomQuery,
Creates a new MockRouter.
Trait Implementations§
Source§impl<ExecC, QueryC> CosmosRouter for MockRouter<ExecC, QueryC>where
ExecC: CustomMsg,
QueryC: CustomQuery,
impl<ExecC, QueryC> CosmosRouter for MockRouter<ExecC, QueryC>where
ExecC: CustomMsg,
QueryC: CustomQuery,
Source§fn execute(
&self,
_api: &dyn Api,
_storage: &mut dyn Storage,
_block: &BlockInfo,
_sender: Addr,
_msg: CosmosMsg<Self::ExecC>,
) -> AnyResult<AppResponse>
fn execute( &self, _api: &dyn Api, _storage: &mut dyn Storage, _block: &BlockInfo, _sender: Addr, _msg: CosmosMsg<Self::ExecC>, ) -> AnyResult<AppResponse>
Executes messages.
Auto Trait Implementations§
impl<ExecC, QueryC> Freeze for MockRouter<ExecC, QueryC>
impl<ExecC, QueryC> RefUnwindSafe for MockRouter<ExecC, QueryC>where
ExecC: RefUnwindSafe,
QueryC: RefUnwindSafe,
impl<ExecC, QueryC> Send for MockRouter<ExecC, QueryC>
impl<ExecC, QueryC> Sync for MockRouter<ExecC, QueryC>
impl<ExecC, QueryC> Unpin for MockRouter<ExecC, QueryC>
impl<ExecC, QueryC> UnwindSafe for MockRouter<ExecC, QueryC>where
ExecC: UnwindSafe,
QueryC: 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