pub enum FederationError {
ConnectionFailed(String),
HandshakeFailed(String),
NamespaceConflict {
pattern: String,
a: String,
b: String,
},
PeerNotFound(String),
Transport(String),
Codec(String),
Sync(String),
AlreadyConnected(String),
Config(String),
}Expand description
Federation-specific errors
Variants§
ConnectionFailed(String)
Peer connection failed
HandshakeFailed(String)
Handshake failed (peer did not announce federation feature)
NamespaceConflict
Namespace conflict (two peers claim the same namespace)
PeerNotFound(String)
Peer not found
Transport(String)
Transport error
Codec(String)
Codec error
Sync(String)
Sync error
AlreadyConnected(String)
Already connected to this peer
Config(String)
Configuration error
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()
Source§impl From<Error> for FederationError
impl From<Error> for FederationError
Source§impl From<TransportError> for FederationError
impl From<TransportError> for FederationError
Source§fn from(e: TransportError) -> Self
fn from(e: TransportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FederationError
impl RefUnwindSafe for FederationError
impl Send for FederationError
impl Sync for FederationError
impl Unpin for FederationError
impl UnsafeUnpin 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