Struct ethers_core::utils::AnvilInstance
source · pub struct AnvilInstance { /* private fields */ }
Available on non-WebAssembly only.
Expand description
An anvil CLI instance. Will close the instance when dropped.
Construct this using Anvil
.
Implementations§
source§impl AnvilInstance
impl AnvilInstance
sourcepub fn keys(&self) -> &[K256SecretKey]
pub fn keys(&self) -> &[K256SecretKey]
Returns the private keys used to instantiate this instance
sourcepub fn ws_endpoint(&self) -> String
pub fn ws_endpoint(&self) -> String
Returns the Websocket endpoint of this instance
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for AnvilInstance
impl Send for AnvilInstance
impl Sync for AnvilInstance
impl Unpin for AnvilInstance
impl UnwindSafe for AnvilInstance
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