pub enum NodeError {
Show 16 variants
NoStderr,
NoStdout,
Timeout,
Fatal(String),
ReadLineError(Error),
ChainIdNotSet,
CreateDirError(Error),
GenesisError(String),
InitError,
SpawnError(Error),
WaitError(Error),
CliqueAddressError(String),
ParsePrivateKeyError,
DeserializePrivateKeyError,
FromHexError(FromHexError),
NoKeysAvailable,
}
Expand description
Errors that can occur when working with the node instance.
Variants§
NoStderr
No stderr was captured from the child process.
NoStdout
No stdout was captured from the child process.
Timeout
Timed out waiting for the node to start.
Fatal(String)
Encountered a fatal error.
ReadLineError(Error)
A line could not be read from the node stderr.
ChainIdNotSet
The chain id was not set.
CreateDirError(Error)
Could not create the data directory.
GenesisError(String)
Genesis error
InitError
Node init error
SpawnError(Error)
Spawn node error
WaitError(Error)
Wait error
CliqueAddressError(String)
Clique private key error
ParsePrivateKeyError
The private key could not be parsed.
DeserializePrivateKeyError
An error occurred while deserializing a private key.
FromHexError(FromHexError)
An error occurred while parsing a hex string.
NoKeysAvailable
No keys available this node instance.
Trait Implementations§
source§impl Error for NodeError
impl Error for NodeError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<FromHexError> for NodeError
impl From<FromHexError> for NodeError
source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NodeError
impl !RefUnwindSafe for NodeError
impl Send for NodeError
impl Sync for NodeError
impl Unpin for NodeError
impl !UnwindSafe for NodeError
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