pub struct CosmosInstance {
pub chain_config: ChainConfig,
pub genesis_addresses: Vec<Address>,
pub name: String,
pub stdout: StdioKind,
pub stderr: StdioKind,
pub block_time: String,
pub image: String,
}Expand description
This is just a simple helper for running a Docker container with wasmd and cleaning up when done useful for integration tests that need a chain running
More advanced use-cases with other chains or more control should use third-party tools
This instance represents a running Docker container. When dropped, it will attempt to kill (and remove) the container automatically.
Fields§
§chain_config: ChainConfig§genesis_addresses: Vec<Address>§name: String§stdout: StdioKind§stderr: StdioKind§block_time: String§image: StringImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CosmosInstance
impl RefUnwindSafe for CosmosInstance
impl Send for CosmosInstance
impl Sync for CosmosInstance
impl Unpin for CosmosInstance
impl UnsafeUnpin for CosmosInstance
impl UnwindSafe for CosmosInstance
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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