pub enum DistributedError {
Show 19 variants
Cluster(String),
Node(String),
Consensus(String),
Discovery(String),
Messaging(String),
Session(String),
Memory(String),
Lock {
lock_name: String,
message: String,
},
Task(String),
LeaderNotAvailable,
NotLeader(Option<String>),
NodeNotFound(String),
SessionNotFound(String),
TaskNotFound(String),
SplitBrain(String),
QuorumNotReached(usize, usize),
Timeout(String),
Serialization(String),
InvalidStateTransition {
from: String,
to: String,
},
}Expand description
Distributed mode errors.
Variants§
Cluster(String)
Node(String)
Consensus(String)
Discovery(String)
Messaging(String)
Session(String)
Memory(String)
Lock
Task(String)
LeaderNotAvailable
NotLeader(Option<String>)
NodeNotFound(String)
SessionNotFound(String)
TaskNotFound(String)
SplitBrain(String)
QuorumNotReached(usize, usize)
Timeout(String)
Serialization(String)
InvalidStateTransition
Trait Implementations§
Source§impl Debug for DistributedError
impl Debug for DistributedError
Source§impl Display for DistributedError
impl Display for DistributedError
Source§impl Error for DistributedError
impl Error for DistributedError
1.30.0 · 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<DistributedError> for Error
impl From<DistributedError> for Error
Source§fn from(source: DistributedError) -> Self
fn from(source: DistributedError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DistributedError
impl RefUnwindSafe for DistributedError
impl Send for DistributedError
impl Sync for DistributedError
impl Unpin for DistributedError
impl UnsafeUnpin for DistributedError
impl UnwindSafe for DistributedError
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