pub enum Error {
Io(Error),
CertificateError(String),
TlsError(String),
HttpError(Error),
SlingerError(Error),
ProxyError(String),
InvalidRequest(String),
ConnectionError(String),
Other(String),
}Expand description
Error types for MITM proxy operations
Variants§
Io(Error)
IO error
CertificateError(String)
Certificate error
TlsError(String)
TLS error
HttpError(Error)
HTTP parsing error
SlingerError(Error)
Slinger client error
ProxyError(String)
Proxy error
InvalidRequest(String)
Invalid request
ConnectionError(String)
Connection error
Other(String)
Other errors
Implementations§
Source§impl Error
impl Error
Sourcepub fn certificate_error(msg: impl Into<String>) -> Self
pub fn certificate_error(msg: impl Into<String>) -> Self
Create a certificate error and log it
Sourcepub fn proxy_error(msg: impl Into<String>) -> Self
pub fn proxy_error(msg: impl Into<String>) -> Self
Create a proxy error and log it
Sourcepub fn invalid_request(msg: impl Into<String>) -> Self
pub fn invalid_request(msg: impl Into<String>) -> Self
Create an invalid request error and log it
Sourcepub fn connection_error(msg: impl Into<String>) -> Self
pub fn connection_error(msg: impl Into<String>) -> Self
Create a connection error and log it
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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