#[non_exhaustive]pub enum AcceptError {
Io(Error),
Rejected(SocketAddr),
HeaderTimeout(SocketAddr),
EmptyConnection(SocketAddr),
Parse(ParseError, SocketAddr),
ValidationFailed(Box<dyn Error + Send + Sync>, SocketAddr),
VersionMismatch(SocketAddr),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(Error)
Rejected(SocketAddr)
HeaderTimeout(SocketAddr)
EmptyConnection(SocketAddr)
Parse(ParseError, SocketAddr)
ValidationFailed(Box<dyn Error + Send + Sync>, SocketAddr)
VersionMismatch(SocketAddr)
Trait Implementations§
Source§impl Debug for AcceptError
impl Debug for AcceptError
Source§impl Display for AcceptError
impl Display for AcceptError
Source§impl Error for AcceptError
impl Error for AcceptError
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 AcceptError
impl !RefUnwindSafe for AcceptError
impl Send for AcceptError
impl Sync for AcceptError
impl Unpin for AcceptError
impl UnsafeUnpin for AcceptError
impl !UnwindSafe for AcceptError
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