Enum pingora_core::ErrorType
source · pub enum ErrorType {
Show 31 variants
ConnectTimedout,
ConnectRefused,
ConnectNoRoute,
TLSHandshakeFailure,
TLSHandshakeTimedout,
InvalidCert,
HandshakeError,
ConnectError,
BindError,
AcceptError,
SocketError,
ConnectProxyFailure,
InvalidHTTPHeader,
H1Error,
H2Error,
H2Downgrade,
InvalidH2,
ReadError,
WriteError,
ReadTimedout,
WriteTimedout,
ConnectionClosed,
HTTPStatus(u16),
FileOpenError,
FileCreateError,
FileReadError,
FileWriteError,
InternalError,
UnknownError,
Custom(&'static str),
CustomCode(&'static str, u16),
}
Expand description
Predefined type of errors
Variants§
ConnectTimedout
ConnectRefused
ConnectNoRoute
TLSHandshakeFailure
TLSHandshakeTimedout
InvalidCert
HandshakeError
ConnectError
BindError
AcceptError
SocketError
ConnectProxyFailure
InvalidHTTPHeader
H1Error
H2Error
H2Downgrade
InvalidH2
ReadError
WriteError
ReadTimedout
WriteTimedout
ConnectionClosed
HTTPStatus(u16)
FileOpenError
FileCreateError
FileReadError
FileWriteError
InternalError
UnknownError
Custom(&'static str)
Custom error with static string. this field is to allow users to extend the types of errors. If runtime generated string is needed, it is more likely to be treated as “context” rather than “type”.
CustomCode(&'static str, u16)
Custom error with static string and code. this field allows users to extend error further with error codes.
Implementations§
Trait Implementations§
source§impl PartialEq for ErrorType
impl PartialEq for ErrorType
impl Eq for ErrorType
impl StructuralPartialEq for ErrorType
Auto Trait Implementations§
impl Freeze for ErrorType
impl RefUnwindSafe for ErrorType
impl Send for ErrorType
impl Sync for ErrorType
impl Unpin for ErrorType
impl UnwindSafe for ErrorType
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.