pub struct WireError { /* private fields */ }Implementations§
Source§impl WireError
impl WireError
pub fn new(kind: WireErrorKind, message: impl Into<Cow<'static, str>>) -> Self
pub fn with_source<E>( kind: WireErrorKind, message: impl Into<Cow<'static, str>>, source: E, ) -> Self
pub fn kind(&self) -> WireErrorKind
pub fn message(&self) -> &str
pub fn phase(&self) -> FailurePhase
pub fn diagnostics(&self) -> &WireErrorDiagnostics
pub fn proxy_addr(&self) -> Option<SocketAddr>
pub fn response_status(&self) -> Option<StatusCode>
pub fn request_committed(&self) -> bool
pub fn establishment_stage(&self) -> Option<EstablishmentStage>
pub fn is_retryable_establishment(&self) -> bool
pub fn is_connect_timeout(&self) -> bool
pub fn is_non_retryable_connect(&self) -> bool
pub fn invalid_request(message: impl Into<Cow<'static, str>>) -> Self
pub fn timeout(message: impl Into<Cow<'static, str>>) -> Self
pub fn body_timeout(message: impl Into<Cow<'static, str>>) -> Self
pub fn connect_timeout(message: impl Into<Cow<'static, str>>) -> Self
pub fn canceled(message: impl Into<Cow<'static, str>>) -> Self
pub fn dns<E>(message: impl Into<Cow<'static, str>>, source: E) -> Self
pub fn connect<E>(message: impl Into<Cow<'static, str>>, source: E) -> Self
pub fn tcp_connect<E>(message: impl Into<Cow<'static, str>>, source: E) -> Self
pub fn connect_non_retryable(message: impl Into<Cow<'static, str>>) -> Self
pub fn tls<E>(message: impl Into<Cow<'static, str>>, source: E) -> Self
pub fn tls_non_retryable<E>( message: impl Into<Cow<'static, str>>, source: E, ) -> Self
pub fn protocol<E>(message: impl Into<Cow<'static, str>>, source: E) -> Self
pub fn protocol_binding<E>( message: impl Into<Cow<'static, str>>, source: E, ) -> Self
pub fn proxy_tunnel<E>(message: impl Into<Cow<'static, str>>, source: E) -> Self
pub fn proxy_tunnel_non_retryable(message: impl Into<Cow<'static, str>>) -> Self
pub fn route_exhausted(message: impl Into<Cow<'static, str>>) -> Self
pub fn redirect(message: impl Into<Cow<'static, str>>) -> Self
pub fn body<E>(message: impl Into<Cow<'static, str>>, source: E) -> Self
pub fn interceptor<E>(message: impl Into<Cow<'static, str>>, source: E) -> Self
pub fn internal<E>(message: impl Into<Cow<'static, str>>, source: E) -> Self
pub fn with_phase(self, phase: FailurePhase) -> Self
pub fn with_proxy_addr(self, proxy_addr: SocketAddr) -> Self
pub fn with_response_status(self, response_status: StatusCode) -> Self
pub fn with_request_committed(self) -> Self
pub fn with_establishment( self, stage: EstablishmentStage, retryable: bool, ) -> Self
pub fn with_connect_timeout(self) -> Self
Trait Implementations§
Source§impl Error for WireError
impl Error for WireError
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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<InvalidUri> for WireError
impl From<InvalidUri> for WireError
Source§fn from(source: InvalidUri) -> Self
fn from(source: InvalidUri) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for WireError
impl !RefUnwindSafe for WireError
impl !UnwindSafe for WireError
impl Send for WireError
impl Sync for WireError
impl Unpin for WireError
impl UnsafeUnpin for WireError
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