Struct ibc_testkit::fixtures::core::context::MockContextConfig
source · pub struct MockContextConfig { /* private fields */ }Expand description
Configuration of the MockContext type for generating dummy contexts.
Implementations§
source§impl MockContextConfig
impl MockContextConfig
sourcepub fn builder() -> MockContextConfigBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> MockContextConfigBuilder<((), (), (), (), (), (), ())>
Create a builder for building MockContextConfig.
On the builder, call .host_type(...)(optional), .host_id(...), .block_time(...)(optional), .max_history_size(...)(optional), .validator_set_history(...)(optional), .latest_height(...), .latest_timestamp(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of MockContextConfig.
Trait Implementations§
source§impl Debug for MockContextConfig
impl Debug for MockContextConfig
source§impl From<MockContextConfig> for MockContext
impl From<MockContextConfig> for MockContext
source§fn from(params: MockContextConfig) -> Self
fn from(params: MockContextConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for MockContextConfig
impl Send for MockContextConfig
impl Sync for MockContextConfig
impl Unpin for MockContextConfig
impl UnwindSafe for MockContextConfig
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