Struct ibc_testkit::fixtures::core::context::TestContextConfig
source · pub struct TestContextConfig<H>where
H: TestHost,{ /* private fields */ }Expand description
Configuration of the StoreGenericTestContext type for generating dummy contexts.
Implementations§
source§impl<H> TestContextConfig<H>where
H: TestHost,
impl<H> TestContextConfig<H>where
H: TestHost,
sourcepub fn builder() -> TestContextConfigBuilder<H, ((), (), (), (), ())>
pub fn builder() -> TestContextConfigBuilder<H, ((), (), (), (), ())>
Create a builder for building TestContextConfig.
On the builder, call .host(...)(optional), .block_time(...)(optional), .latest_timestamp(...)(optional), .block_params_history(...)(optional), .latest_height(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of TestContextConfig.
Trait Implementations§
source§impl<H> Debug for TestContextConfig<H>
impl<H> Debug for TestContextConfig<H>
source§impl<S, H> From<TestContextConfig<H>> for StoreGenericTestContext<S, H>where
S: ProvableStore + Debug + Default,
H: TestHost,
HostClientState<H>: ClientStateValidation<MockIbcStore<S>>,
impl<S, H> From<TestContextConfig<H>> for StoreGenericTestContext<S, H>where
S: ProvableStore + Debug + Default,
H: TestHost,
HostClientState<H>: ClientStateValidation<MockIbcStore<S>>,
source§fn from(params: TestContextConfig<H>) -> Self
fn from(params: TestContextConfig<H>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<H> Freeze for TestContextConfig<H>where
H: Freeze,
impl<H> RefUnwindSafe for TestContextConfig<H>
impl<H> Send for TestContextConfig<H>
impl<H> Sync for TestContextConfig<H>
impl<H> Unpin for TestContextConfig<H>
impl<H> UnwindSafe for TestContextConfig<H>
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