[][src]Struct pallet_abci::MockAbciInterface

pub struct MockAbciInterface { /* fields omitted */ }

AbciInterface trait that define abci methods.

Implementations

impl MockAbciInterface[src]

pub fn checkpoint(&mut self)[src]

Validate that all current expectations for all methods have been satisfied, and discard them.

pub fn new() -> Self[src]

Create a new mock object with no expectations.

This method will not be generated if the real struct already has a new method. However, it will be generated if the struct implements a trait with a new method. The trait's new method can still be called like <MockX as TraitY>::new

impl MockAbciInterface[src]

#[must_use = "Must set return value when not using the \"nightly\" feature"]pub fn expect_echo(&mut self) -> &mut Expectation[src]

Create an Expectation for mocking the echo method

#[must_use = "Must set return value when not using the \"nightly\" feature"]pub fn expect_check_tx(&mut self) -> &mut Expectation[src]

Create an Expectation for mocking the check_tx method

#[must_use = "Must set return value when not using the \"nightly\" feature"]pub fn expect_deliver_tx(&mut self) -> &mut Expectation[src]

Create an Expectation for mocking the deliver_tx method

#[must_use = "Must set return value when not using the \"nightly\" feature"]pub fn expect_init_chain(&mut self) -> &mut Expectation[src]

Create an Expectation for mocking the init_chain method

#[must_use = "Must set return value when not using the \"nightly\" feature"]pub fn expect_set_option(&mut self) -> &mut Expectation[src]

Create an Expectation for mocking the set_option method

#[must_use = "Must set return value when not using the \"nightly\" feature"]pub fn expect_begin_block(&mut self) -> &mut Expectation[src]

Create an Expectation for mocking the begin_block method

#[must_use = "Must set return value when not using the \"nightly\" feature"]pub fn expect_end_block(&mut self) -> &mut Expectation[src]

Create an Expectation for mocking the end_block method

#[must_use = "Must set return value when not using the \"nightly\" feature"]pub fn expect_commit(&mut self) -> &mut Expectation[src]

Create an Expectation for mocking the commit method

#[must_use = "Must set return value when not using the \"nightly\" feature"]pub fn expect_query(&mut self) -> &mut Expectation[src]

Create an Expectation for mocking the query method

#[must_use = "Must set return value when not using the \"nightly\" feature"]pub fn expect_info(&mut self) -> &mut Expectation[src]

Create an Expectation for mocking the info method

#[must_use = "Must set return value when not using the \"nightly\" feature"]pub fn expect_flush(&mut self) -> &mut Expectation[src]

Create an Expectation for mocking the flush method

Trait Implementations

impl AbciInterface for MockAbciInterface[src]

AbciInterface trait that define abci methods.

impl Default for MockAbciInterface[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]