[−][src]Struct pallet_abci::MockAbciInterface
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.
pub fn echo(
&mut self,
message: String
) -> Result<Box<dyn ResponseEcho>, Box<dyn Error>>
[src]
&mut self,
message: String
) -> Result<Box<dyn ResponseEcho>, Box<dyn Error>>
pub fn check_tx(
&mut self,
tx: Vec<u8>
) -> Result<Box<dyn ResponseCheckTx>, Box<dyn Error>>
[src]
&mut self,
tx: Vec<u8>
) -> Result<Box<dyn ResponseCheckTx>, Box<dyn Error>>
pub fn deliver_tx(
&mut self,
tx: Vec<u8>
) -> Result<Box<dyn ResponseDeliverTx>, Box<dyn Error>>
[src]
&mut self,
tx: Vec<u8>
) -> Result<Box<dyn ResponseDeliverTx>, Box<dyn Error>>
pub fn init_chain(
&mut self,
time_seconds: i64,
time_nanos: i32,
chain_id: &str,
pub_key_types: Vec<String>,
max_bytes: i64,
max_gas: i64,
max_age_num_blocks: i64,
max_age_duration: u64,
app_state_bytes: Vec<u8>
) -> Result<Box<dyn ResponseInitChain>, Box<dyn Error>>
[src]
&mut self,
time_seconds: i64,
time_nanos: i32,
chain_id: &str,
pub_key_types: Vec<String>,
max_bytes: i64,
max_gas: i64,
max_age_num_blocks: i64,
max_age_duration: u64,
app_state_bytes: Vec<u8>
) -> Result<Box<dyn ResponseInitChain>, Box<dyn Error>>
pub fn set_option(
&mut self,
key: &str,
value: &str
) -> Result<Box<dyn ResponseSetOption>, Box<dyn Error>>
[src]
&mut self,
key: &str,
value: &str
) -> Result<Box<dyn ResponseSetOption>, Box<dyn Error>>
pub fn begin_block(
&mut self,
height: i64,
hash: Vec<u8>,
last_block_id: Vec<u8>,
proposer_address: Vec<u8>
) -> Result<Box<dyn ResponseBeginBlock>, Box<dyn Error>>
[src]
&mut self,
height: i64,
hash: Vec<u8>,
last_block_id: Vec<u8>,
proposer_address: Vec<u8>
) -> Result<Box<dyn ResponseBeginBlock>, Box<dyn Error>>
pub fn end_block(
&mut self,
height: i64
) -> Result<Box<dyn ResponseEndBlock>, Box<dyn Error>>
[src]
&mut self,
height: i64
) -> Result<Box<dyn ResponseEndBlock>, Box<dyn Error>>
pub fn commit(&mut self) -> Result<Box<dyn ResponseCommit>, Box<dyn Error>>
[src]
pub fn query(
&mut self,
path: String,
data: Vec<u8>,
height: i64,
prove: bool
) -> Result<Box<dyn ResponseQuery>, Box<dyn Error>>
[src]
&mut self,
path: String,
data: Vec<u8>,
height: i64,
prove: bool
) -> Result<Box<dyn ResponseQuery>, Box<dyn Error>>
pub fn info(&mut self) -> Result<Box<dyn ResponseInfo>, Box<dyn Error>>
[src]
pub fn flush(&mut self) -> Result<Box<dyn ResponseFlush>, Box<dyn Error>>
[src]
impl Default for MockAbciInterface
[src]
Auto Trait Implementations
impl RefUnwindSafe for MockAbciInterface
impl Send for MockAbciInterface
impl Sync for MockAbciInterface
impl Unpin for MockAbciInterface
impl UnwindSafe for MockAbciInterface
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any + ?Sized,
T: Any + ?Sized,
pub fn type_id_compat(&self) -> TypeId
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,