pub struct DummyStoreGenericTestContextBuilder<S, H, ___State = __DummyStoreGenericTestContextBuilderInitialState>where
S: ProvableStore + Debug + Default,
H: TestHost,
HostClientState<H>: ClientStateValidation<MockIbcStore<S>>,{ /* private fields */ }Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::call().
Implementations§
source§impl<S, H, __Host, __BlockTime, __LatestTimestamp, __BlockParamsHistory, __LatestHeight> DummyStoreGenericTestContextBuilder<S, H, (__Host, __BlockTime, __LatestTimestamp, __BlockParamsHistory, __LatestHeight)>where
S: ProvableStore + Debug + Default,
H: TestHost,
HostClientState<H>: ClientStateValidation<MockIbcStore<S>>,
impl<S, H, __Host, __BlockTime, __LatestTimestamp, __BlockParamsHistory, __LatestHeight> DummyStoreGenericTestContextBuilder<S, H, (__Host, __BlockTime, __LatestTimestamp, __BlockParamsHistory, __LatestHeight)>where
S: ProvableStore + Debug + Default,
H: TestHost,
HostClientState<H>: ClientStateValidation<MockIbcStore<S>>,
sourcepub fn call(self) -> StoreGenericTestContext<S, H>where
__Host: IntoSet<Option<H>, DummyStoreGenericTestContextBuilder__host>,
__BlockTime: IntoSet<Option<Duration>, DummyStoreGenericTestContextBuilder__block_time>,
__LatestTimestamp: IntoSet<Option<Timestamp>, DummyStoreGenericTestContextBuilder__latest_timestamp>,
__BlockParamsHistory: IntoSet<Option<Vec<H::BlockParams>>, DummyStoreGenericTestContextBuilder__block_params_history>,
__LatestHeight: IntoSet<Option<Height>, DummyStoreGenericTestContextBuilder__latest_height>,
pub fn call(self) -> StoreGenericTestContext<S, H>where
__Host: IntoSet<Option<H>, DummyStoreGenericTestContextBuilder__host>,
__BlockTime: IntoSet<Option<Duration>, DummyStoreGenericTestContextBuilder__block_time>,
__LatestTimestamp: IntoSet<Option<Timestamp>, DummyStoreGenericTestContextBuilder__latest_timestamp>,
__BlockParamsHistory: IntoSet<Option<Vec<H::BlockParams>>, DummyStoreGenericTestContextBuilder__block_params_history>,
__LatestHeight: IntoSet<Option<Height>, DummyStoreGenericTestContextBuilder__latest_height>,
Finishes building and performs the requested action.
sourcepub fn maybe_host(
self,
value: Option<H>,
) -> <Self as __DummyStoreGenericTestContextBuilderSetMember>::Hostwhere
__Host: IsUnset,
pub fn maybe_host(
self,
value: Option<H>,
) -> <Self as __DummyStoreGenericTestContextBuilderSetMember>::Hostwhere
__Host: IsUnset,
Same as Self::host, but accepts an Option as input. See that method’s documentation for more details.
sourcepub fn host(
self,
value: H,
) -> <Self as __DummyStoreGenericTestContextBuilderSetMember>::Hostwhere
__Host: IsUnset,
pub fn host(
self,
value: H,
) -> <Self as __DummyStoreGenericTestContextBuilderSetMember>::Hostwhere
__Host: IsUnset,
Sets the value of host. See dummy_store_generic_test_context() for more info.
sourcepub fn maybe_block_time(
self,
value: Option<Duration>,
) -> <Self as __DummyStoreGenericTestContextBuilderSetMember>::BlockTimewhere
__BlockTime: IsUnset,
pub fn maybe_block_time(
self,
value: Option<Duration>,
) -> <Self as __DummyStoreGenericTestContextBuilderSetMember>::BlockTimewhere
__BlockTime: IsUnset,
Same as Self::block_time, but accepts an Option as input. See that method’s documentation for more details.
sourcepub fn block_time(
self,
value: Duration,
) -> <Self as __DummyStoreGenericTestContextBuilderSetMember>::BlockTimewhere
__BlockTime: IsUnset,
pub fn block_time(
self,
value: Duration,
) -> <Self as __DummyStoreGenericTestContextBuilderSetMember>::BlockTimewhere
__BlockTime: IsUnset,
Sets the value of block_time. See dummy_store_generic_test_context() for more info.
sourcepub fn maybe_latest_timestamp(
self,
value: Option<Timestamp>,
) -> <Self as __DummyStoreGenericTestContextBuilderSetMember>::LatestTimestampwhere
__LatestTimestamp: IsUnset,
pub fn maybe_latest_timestamp(
self,
value: Option<Timestamp>,
) -> <Self as __DummyStoreGenericTestContextBuilderSetMember>::LatestTimestampwhere
__LatestTimestamp: IsUnset,
Same as Self::latest_timestamp, but accepts an Option as input. See that method’s documentation for more details.
sourcepub fn latest_timestamp(
self,
value: Timestamp,
) -> <Self as __DummyStoreGenericTestContextBuilderSetMember>::LatestTimestampwhere
__LatestTimestamp: IsUnset,
pub fn latest_timestamp(
self,
value: Timestamp,
) -> <Self as __DummyStoreGenericTestContextBuilderSetMember>::LatestTimestampwhere
__LatestTimestamp: IsUnset,
Sets the value of latest_timestamp. See dummy_store_generic_test_context() for more info.
sourcepub fn maybe_block_params_history(
self,
value: Option<Vec<H::BlockParams>>,
) -> <Self as __DummyStoreGenericTestContextBuilderSetMember>::BlockParamsHistorywhere
__BlockParamsHistory: IsUnset,
pub fn maybe_block_params_history(
self,
value: Option<Vec<H::BlockParams>>,
) -> <Self as __DummyStoreGenericTestContextBuilderSetMember>::BlockParamsHistorywhere
__BlockParamsHistory: IsUnset,
Same as Self::block_params_history, but accepts an Option as input. See that method’s documentation for more details.
sourcepub fn block_params_history(
self,
value: Vec<H::BlockParams>,
) -> <Self as __DummyStoreGenericTestContextBuilderSetMember>::BlockParamsHistorywhere
__BlockParamsHistory: IsUnset,
pub fn block_params_history(
self,
value: Vec<H::BlockParams>,
) -> <Self as __DummyStoreGenericTestContextBuilderSetMember>::BlockParamsHistorywhere
__BlockParamsHistory: IsUnset,
Sets the value of block_params_history. See dummy_store_generic_test_context() for more info.
sourcepub fn maybe_latest_height(
self,
value: Option<Height>,
) -> <Self as __DummyStoreGenericTestContextBuilderSetMember>::LatestHeightwhere
__LatestHeight: IsUnset,
pub fn maybe_latest_height(
self,
value: Option<Height>,
) -> <Self as __DummyStoreGenericTestContextBuilderSetMember>::LatestHeightwhere
__LatestHeight: IsUnset,
Same as Self::latest_height, but accepts an Option as input. See that method’s documentation for more details.
sourcepub fn latest_height(
self,
value: Height,
) -> <Self as __DummyStoreGenericTestContextBuilderSetMember>::LatestHeightwhere
__LatestHeight: IsUnset,
pub fn latest_height(
self,
value: Height,
) -> <Self as __DummyStoreGenericTestContextBuilderSetMember>::LatestHeightwhere
__LatestHeight: IsUnset,
Sets the value of latest_height. See dummy_store_generic_test_context() for more info.
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,
___State: RefUnwindSafe,
H: RefUnwindSafe,
S: RefUnwindSafe,
<H as TestHost>::BlockParams: RefUnwindSafe,
impl<S, H, ___State> Send for DummyStoreGenericTestContextBuilder<S, H, ___State>where
<H as TestHost>::ClientState: Sized,
___State: Send,
H: Send,
<H as TestHost>::BlockParams: Send,
impl<S, H, ___State> Sync for DummyStoreGenericTestContextBuilder<S, H, ___State>where
<H as TestHost>::ClientState: Sized,
___State: Sync,
H: Sync,
<H as TestHost>::BlockParams: Sync,
impl<S, H, ___State> Unpin for DummyStoreGenericTestContextBuilder<S, H, ___State>where
<H as TestHost>::ClientState: Sized,
___State: Unpin,
H: Unpin,
S: Unpin,
<H as TestHost>::BlockParams: Unpin,
impl<S, H, ___State> UnwindSafe for DummyStoreGenericTestContextBuilder<S, H, ___State>where
<H as TestHost>::ClientState: Sized,
___State: UnwindSafe,
H: UnwindSafe,
S: UnwindSafe,
<H as TestHost>::BlockParams: 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
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>
T in a tonic::Request