Enum ntex::http::ws::HandshakeError [−][src]
pub enum HandshakeError { GetMethodRequired, NoWebsocketUpgrade, NoConnectionUpgrade, NoVersionHeader, UnsupportedVersion, BadWebsocketKey, }
Expand description
Websocket handshake errors
Variants
Only get method is allowed
Upgrade header if not set to websocket
Connection header is not set to upgrade
Websocket version header is not set
Unsupported websocket version
Websocket key is not set or wrong
Trait Implementations
impl Debug for HandshakeError
[src]
impl Debug for HandshakeError
[src]impl Display for HandshakeError
[src]
impl Display for HandshakeError
[src]impl PartialEq<HandshakeError> for HandshakeError
[src]
impl PartialEq<HandshakeError> for HandshakeError
[src]impl ResponseError for HandshakeError
[src]
impl ResponseError for HandshakeError
[src]fn error_response(&self) -> Response
[src]
fn error_response(&self) -> Response
[src]Create response for error Read more
impl WebResponseError<DefaultError> for HandshakeError
[src]
impl WebResponseError<DefaultError> for HandshakeError
[src]Error renderer for ws::HandshakeError
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]
fn error_response(&self, _: &HttpRequest) -> HttpResponse
[src]Generate response for error Read more
fn status_code(&self) -> StatusCode
[src]
fn status_code(&self) -> StatusCode
[src]Response’s status code Read more
impl StructuralPartialEq for HandshakeError
[src]
Auto Trait Implementations
impl RefUnwindSafe for HandshakeError
impl Send for HandshakeError
impl Sync for HandshakeError
impl Unpin for HandshakeError
impl UnwindSafe for HandshakeError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self