pub struct GethInstance { /* private fields */ }
Expand description
A geth instance. Will close the instance when dropped.
Construct this using Geth
.
Implementations§
source§impl GethInstance
impl GethInstance
sourcepub fn ws_endpoint(&self) -> String
pub fn ws_endpoint(&self) -> String
Returns the Websocket endpoint of this instance
sourcepub fn ipc_endpoint(&self) -> String
pub fn ipc_endpoint(&self) -> String
Returns the IPC 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
sourcepub const fn data_dir(&self) -> Option<&PathBuf>
pub const fn data_dir(&self) -> Option<&PathBuf>
Returns the path to this instances’ data directory
sourcepub const fn genesis(&self) -> Option<&Genesis>
pub const fn genesis(&self) -> Option<&Genesis>
Returns the genesis configuration used to configure this instance
sourcepub const fn clique_private_key(&self) -> Option<&SigningKey>
👎Deprecated: clique support was removed in geth >=1.14
pub const fn clique_private_key(&self) -> Option<&SigningKey>
Returns the private key used to configure clique on this instance
sourcepub fn stderr(&mut self) -> Result<ChildStderr, NodeError>
pub fn stderr(&mut self) -> Result<ChildStderr, NodeError>
Takes the stderr contained in the child process.
This leaves a None
in its place, so calling methods that require a stderr to be present
will fail if called after this.
Trait Implementations§
source§impl Debug for GethInstance
impl Debug for GethInstance
Auto Trait Implementations§
impl !Freeze for GethInstance
impl RefUnwindSafe for GethInstance
impl Send for GethInstance
impl Sync for GethInstance
impl Unpin for GethInstance
impl UnwindSafe for GethInstance
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