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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<FromHexError> for NodeError
impl From<FromHexError> for NodeError
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> ErasedDestructor for Twhere
T: 'static,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
NoStderr: 0 bytesNoStdout: 0 bytesTimeout: 0 bytesFatal: 24 bytesReadLineError: 8 bytesChainIdNotSet: 0 bytesCreateDirError: 8 bytesGenesisError: 24 bytesInitError: 0 bytesSpawnError: 8 bytesWaitError: 8 bytesCliqueAddressError: 24 bytesParsePrivateKeyError: 0 bytesDeserializePrivateKeyError: 0 bytesFromHexError: 16 bytesNoKeysAvailable: 0 bytes