pub struct ResponsesWsConnectError {
pub error: TransformError,
pub handshake: Option<Box<WireResponse<()>>>,
}Expand description
Failed preflight/transport, or contradictory connected-handshake metadata.
A normal HTTP rejection is the untouched ResponsesWsConnect::Rejected.
Fields§
§error: TransformError§handshake: Option<Box<WireResponse<()>>>Implementations§
Source§impl ResponsesWsConnectError
impl ResponsesWsConnectError
pub fn kind(&self) -> TransformErrorKind
Trait Implementations§
Source§impl Debug for ResponsesWsConnectError
impl Debug for ResponsesWsConnectError
Source§impl Display for ResponsesWsConnectError
impl Display for ResponsesWsConnectError
Source§impl Error for ResponsesWsConnectError
impl Error for ResponsesWsConnectError
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()
Source§impl From<TransformError> for ResponsesWsConnectError
impl From<TransformError> for ResponsesWsConnectError
Source§fn from(error: TransformError) -> Self
fn from(error: TransformError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ResponsesWsConnectError
impl !UnwindSafe for ResponsesWsConnectError
impl Freeze for ResponsesWsConnectError
impl Send for ResponsesWsConnectError
impl Sync for ResponsesWsConnectError
impl Unpin for ResponsesWsConnectError
impl UnsafeUnpin for ResponsesWsConnectError
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