Enum hersir::controller::NodeError
source · pub enum NodeError {
Show 23 variants
Io(Error),
Reqwest(Error),
BlockFormatError(ReadError),
RestError(RestError),
SerializationError(ScanError),
GrpcError(MockClientError),
CannotCreateFile {
path: PathBuf,
cause: Error,
},
CannotWriteYamlFile {
path: PathBuf,
cause: Error,
},
CannotSpawnNode(Error),
InvalidGrpcCall(MockClientError),
InvalidHeaderId(Error),
InvalidBlock(ReadError),
CannotSerializeBlock(WriteError),
InvalidFragmentLogs(Error),
Rest(RestError),
InvalidNetworkStats(Error),
InvalidEnclaveLeaderIds(Error),
NodeFailedToBootstrap {
alias: String,
e: StartupError,
},
ShutdownProcedure {
alias: String,
message: String,
logs: Vec<String>,
},
NodeFailedToShutdown {
alias: String,
e: ShutdownError,
},
FragmentNotInMemPoolLogs {
alias: String,
fragment_id: FragmentId,
logs: Vec<String>,
},
FragmentIsPendingForTooLong {
fragment_id: FragmentId,
duration: Duration,
alias: String,
logs: Vec<String>,
},
Startup(StartupError),
}
Variants§
Io(Error)
Reqwest(Error)
BlockFormatError(ReadError)
RestError(RestError)
SerializationError(ScanError)
GrpcError(MockClientError)
CannotCreateFile
CannotWriteYamlFile
CannotSpawnNode(Error)
InvalidGrpcCall(MockClientError)
InvalidHeaderId(Error)
InvalidBlock(ReadError)
CannotSerializeBlock(WriteError)
InvalidFragmentLogs(Error)
Rest(RestError)
InvalidNetworkStats(Error)
InvalidEnclaveLeaderIds(Error)
NodeFailedToBootstrap
ShutdownProcedure
NodeFailedToShutdown
FragmentNotInMemPoolLogs
FragmentIsPendingForTooLong
Startup(StartupError)
Implementations§
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<MockClientError> for Error
impl From<MockClientError> for Error
source§fn from(source: MockClientError) -> Self
fn from(source: MockClientError) -> Self
Converts to this type from the input type.
source§impl From<StartupError> for Error
impl From<StartupError> for Error
source§fn from(source: StartupError) -> Self
fn from(source: StartupError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request