Enum ntex::ws::ProtocolError [−][src]
pub enum ProtocolError { UnmaskedFrame, MaskedFrame, InvalidOpcode(u8), InvalidLength(usize), BadOpCode, Overflow, ContinuationNotStarted, ContinuationStarted, ContinuationFragment(OpCode), }
Expand description
Websocket protocol errors
Variants
Received an unmasked frame from client
Received a masked frame from server
InvalidOpcode(u8)
Encountered invalid opcode
InvalidLength(usize)
Invalid control frame length
Bad web socket op code
A payload reached size limit.
Continuation is not started
Received new continuation but it is already started
ContinuationFragment(OpCode)
Unknown continuation fragment
Trait Implementations
impl Debug for ProtocolError
[src]
impl Debug for ProtocolError
[src]impl Display for ProtocolError
[src]
impl Display for ProtocolError
[src]impl Error for ProtocolError
[src]
impl Error for ProtocolError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl From<OpCode> for ProtocolError
[src]
impl From<OpCode> for ProtocolError
[src]fn from(original: OpCode) -> ProtocolError
[src]
fn from(original: OpCode) -> ProtocolError
[src]Performs the conversion.
impl From<ProtocolError> for WsClientError
[src]
impl From<ProtocolError> for WsClientError
[src]fn from(original: ProtocolError) -> WsClientError
[src]
fn from(original: ProtocolError) -> WsClientError
[src]Performs the conversion.
impl From<u8> for ProtocolError
[src]
impl From<u8> for ProtocolError
[src]fn from(original: u8) -> ProtocolError
[src]
fn from(original: u8) -> ProtocolError
[src]Performs the conversion.
impl From<usize> for ProtocolError
[src]
impl From<usize> for ProtocolError
[src]fn from(original: usize) -> ProtocolError
[src]
fn from(original: usize) -> ProtocolError
[src]Performs the conversion.
impl ResponseError for ProtocolError
[src]
impl ResponseError for ProtocolError
[src]fn error_response(&self) -> Response
[src]
fn error_response(&self) -> Response
[src]Create response for error Read more
Auto Trait Implementations
impl RefUnwindSafe for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Unpin for ProtocolError
impl UnwindSafe for ProtocolError
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