pub enum FatalServerError {
InternalError(String),
Transport(TransportError),
}
Expand description
Fatal error preventing the server from starting or continuing. Typically the result of programmer error or misconfiguration.
Variants§
InternalError(String)
Programmer error within this crate, file a bug!
Transport(TransportError)
Transport error that is not related to any individual peer but would prevent any future packet exchanges on the transport. Must abort the server.
Trait Implementations§
Source§impl Debug for FatalServerError
impl Debug for FatalServerError
Source§impl Display for FatalServerError
impl Display for FatalServerError
Source§impl Error for FatalServerError
impl Error for FatalServerError
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<TransportError> for FatalServerError
impl From<TransportError> for FatalServerError
Source§fn from(source: TransportError) -> Self
fn from(source: TransportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FatalServerError
impl !RefUnwindSafe for FatalServerError
impl Send for FatalServerError
impl Sync for FatalServerError
impl Unpin for FatalServerError
impl !UnwindSafe for FatalServerError
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