Enum saphir::ServerError
source · pub enum ServerError {
HyperError(Error),
FutureCancelledError(Canceled),
ParseError(AddrParseError),
InvalidUri(InvalidUri),
UnsupportedUriScheme,
IOError(Error),
BadListenerConfig,
}
Expand description
Potential server errors
Variants
HyperError(Error)
An Hyper Error
FutureCancelledError(Canceled)
A cancellation Error
ParseError(AddrParseError)
A parsing error of addr
InvalidUri(InvalidUri)
An invalid URI
UnsupportedUriScheme
Unsupported URI Scheme
IOError(Error)
IO error
BadListenerConfig
Bad listener configuration
Trait Implementations
sourceimpl Debug for ServerError
impl Debug for ServerError
sourceimpl Display for ServerError
impl Display for ServerError
sourceimpl Error for ServerError
impl Error for ServerError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourceimpl From<AddrParseError> for ServerError
impl From<AddrParseError> for ServerError
sourcefn from(e: AddrParseError) -> Self
fn from(e: AddrParseError) -> Self
Converts to this type from the input type.
sourceimpl From<Canceled> for ServerError
impl From<Canceled> for ServerError
sourceimpl From<Error> for ServerError
impl From<Error> for ServerError
sourceimpl From<Error> for ServerError
impl From<Error> for ServerError
sourceimpl From<InvalidUri> for ServerError
impl From<InvalidUri> for ServerError
sourcefn from(e: InvalidUri) -> Self
fn from(e: InvalidUri) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl !UnwindSafe for ServerError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more