pub enum Error {
Show 16 variants
ClusterJoinFailed,
ClusterInitFailed,
InvalidAddress,
RPCBindFailed(Error),
DataDirectoryCreateFailed(Error),
SledError(Error),
ClientConnectFailed,
RPCCallFailed,
DeserializeFailed,
SerializeFailed(Error),
InsertFailed,
MissingClusterConfig,
PeerNotFound,
PeerConnectFailed,
StreamClosed,
LeaderElectionTimeout,
}Expand description
All errors that can be returned by skiff.
Variants§
ClusterJoinFailed
A node failed to register itself with any peer in the cluster.
ClusterInitFailed
The cluster could not be initialized (e.g. sled could not be opened).
InvalidAddress
An address string could not be parsed as a valid IPv4 address.
RPCBindFailed(Error)
The gRPC server could not bind to the requested address and port.
DataDirectoryCreateFailed(Error)
The data directory could not be created.
SledError(Error)
A sled database operation failed.
ClientConnectFailed
The client could not connect to any node in the cluster address list.
RPCCallFailed
A gRPC call to a cluster node returned an error status.
DeserializeFailed
Stored bytes could not be deserialized into the expected type.
SerializeFailed(Error)
A value could not be serialized with bincode.
InsertFailed
The cluster did not acknowledge an insert within the timeout.
MissingClusterConfig
No Configure entry was found in the Raft log.
PeerNotFound
The requested peer UUID is not in the current cluster configuration.
PeerConnectFailed
A gRPC connection to a peer could not be established.
StreamClosed
The subscription stream was closed by the server.
LeaderElectionTimeout
No leader was elected within the requested timeout.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · 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
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin 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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request