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