pub enum FederationError {
CryptoError(String),
NetworkError(String),
ConsensusError(String),
InvalidToken,
InsufficientPeers {
needed: usize,
actual: usize,
},
ReconciliationError(String),
PeerNotFound(String),
}Expand description
Errors that can occur in federation operations
Variants§
CryptoError(String)
NetworkError(String)
ConsensusError(String)
InvalidToken
InsufficientPeers
ReconciliationError(String)
PeerNotFound(String)
Trait Implementations§
Source§impl Debug for FederationError
impl Debug for FederationError
Source§impl Display for FederationError
impl Display for FederationError
Source§impl Error for FederationError
impl Error for FederationError
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()
Auto Trait Implementations§
impl Freeze for FederationError
impl RefUnwindSafe for FederationError
impl Send for FederationError
impl Sync for FederationError
impl Unpin for FederationError
impl UnwindSafe for FederationError
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