pub struct AnvilInstance { /* private fields */ }
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
Sourcepub fn endpoint_url(&self) -> Url
pub fn endpoint_url(&self) -> Url
Returns the HTTP endpoint url of this instance
Sourcepub fn ws_endpoint_url(&self) -> Url
pub fn ws_endpoint_url(&self) -> Url
Returns the Websocket endpoint url of this instance
Trait Implementations§
Source§impl Debug for AnvilInstance
impl Debug for AnvilInstance
Auto Trait Implementations§
impl Freeze for AnvilInstance
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