pub struct DummyStoreGenericTestContextBuilder<S, H, State: State = Empty>where
S: ProvableStore + Debug + Default,
H: TestHost,
HostClientState<H>: ClientStateValidation<MockIbcStore<S>>,{ /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with call()
.
Implementations§
Source§impl<S, H, State: State> DummyStoreGenericTestContextBuilder<S, H, State>where
S: ProvableStore + Debug + Default,
H: TestHost,
HostClientState<H>: ClientStateValidation<MockIbcStore<S>>,
impl<S, H, State: State> DummyStoreGenericTestContextBuilder<S, H, State>where
S: ProvableStore + Debug + Default,
H: TestHost,
HostClientState<H>: ClientStateValidation<MockIbcStore<S>>,
Sourcepub fn call(self) -> StoreGenericTestContext<S, H>where
State: IsComplete,
pub fn call(self) -> StoreGenericTestContext<S, H>where
State: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn host(
self,
value: H,
) -> DummyStoreGenericTestContextBuilder<S, H, SetHost<State>>where
State::Host: IsUnset,
pub fn host(
self,
value: H,
) -> DummyStoreGenericTestContextBuilder<S, H, SetHost<State>>where
State::Host: IsUnset,
Sourcepub fn maybe_host(
self,
value: Option<H>,
) -> DummyStoreGenericTestContextBuilder<S, H, SetHost<State>>where
State::Host: IsUnset,
pub fn maybe_host(
self,
value: Option<H>,
) -> DummyStoreGenericTestContextBuilder<S, H, SetHost<State>>where
State::Host: IsUnset,
Sourcepub fn block_time(
self,
value: Duration,
) -> DummyStoreGenericTestContextBuilder<S, H, SetBlockTime<State>>where
State::BlockTime: IsUnset,
pub fn block_time(
self,
value: Duration,
) -> DummyStoreGenericTestContextBuilder<S, H, SetBlockTime<State>>where
State::BlockTime: IsUnset,
Sourcepub fn maybe_block_time(
self,
value: Option<Duration>,
) -> DummyStoreGenericTestContextBuilder<S, H, SetBlockTime<State>>where
State::BlockTime: IsUnset,
pub fn maybe_block_time(
self,
value: Option<Duration>,
) -> DummyStoreGenericTestContextBuilder<S, H, SetBlockTime<State>>where
State::BlockTime: IsUnset,
Sourcepub fn latest_timestamp(
self,
value: Timestamp,
) -> DummyStoreGenericTestContextBuilder<S, H, SetLatestTimestamp<State>>where
State::LatestTimestamp: IsUnset,
pub fn latest_timestamp(
self,
value: Timestamp,
) -> DummyStoreGenericTestContextBuilder<S, H, SetLatestTimestamp<State>>where
State::LatestTimestamp: IsUnset,
Sourcepub fn maybe_latest_timestamp(
self,
value: Option<Timestamp>,
) -> DummyStoreGenericTestContextBuilder<S, H, SetLatestTimestamp<State>>where
State::LatestTimestamp: IsUnset,
pub fn maybe_latest_timestamp(
self,
value: Option<Timestamp>,
) -> DummyStoreGenericTestContextBuilder<S, H, SetLatestTimestamp<State>>where
State::LatestTimestamp: IsUnset,
Sourcepub fn block_params_history(
self,
value: Vec<H::BlockParams>,
) -> DummyStoreGenericTestContextBuilder<S, H, SetBlockParamsHistory<State>>where
State::BlockParamsHistory: IsUnset,
pub fn block_params_history(
self,
value: Vec<H::BlockParams>,
) -> DummyStoreGenericTestContextBuilder<S, H, SetBlockParamsHistory<State>>where
State::BlockParamsHistory: IsUnset,
Sourcepub fn maybe_block_params_history(
self,
value: Option<Vec<H::BlockParams>>,
) -> DummyStoreGenericTestContextBuilder<S, H, SetBlockParamsHistory<State>>where
State::BlockParamsHistory: IsUnset,
pub fn maybe_block_params_history(
self,
value: Option<Vec<H::BlockParams>>,
) -> DummyStoreGenericTestContextBuilder<S, H, SetBlockParamsHistory<State>>where
State::BlockParamsHistory: IsUnset,
Sourcepub fn latest_height(
self,
value: Height,
) -> DummyStoreGenericTestContextBuilder<S, H, SetLatestHeight<State>>where
State::LatestHeight: IsUnset,
pub fn latest_height(
self,
value: Height,
) -> DummyStoreGenericTestContextBuilder<S, H, SetLatestHeight<State>>where
State::LatestHeight: IsUnset,
Sourcepub fn maybe_latest_height(
self,
value: Option<Height>,
) -> DummyStoreGenericTestContextBuilder<S, H, SetLatestHeight<State>>where
State::LatestHeight: IsUnset,
pub fn maybe_latest_height(
self,
value: Option<Height>,
) -> DummyStoreGenericTestContextBuilder<S, H, SetLatestHeight<State>>where
State::LatestHeight: IsUnset,
Auto Trait Implementations§
impl<S, H, State> Freeze for DummyStoreGenericTestContextBuilder<S, H, State>
impl<S, H, State> RefUnwindSafe for DummyStoreGenericTestContextBuilder<S, H, State>where
<H as TestHost>::ClientState: Sized,
H: RefUnwindSafe,
<H as TestHost>::BlockParams: RefUnwindSafe,
impl<S, H, State> Send for DummyStoreGenericTestContextBuilder<S, H, State>
impl<S, H, State> Sync for DummyStoreGenericTestContextBuilder<S, H, State>
impl<S, H, State> Unpin for DummyStoreGenericTestContextBuilder<S, H, State>
impl<S, H, State> UnwindSafe for DummyStoreGenericTestContextBuilder<S, H, State>
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> 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> 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::Request