Enum embedded_websocket::Error
source · pub enum Error {
Show 17 variants
InvalidOpCode,
InvalidFrameLength,
InvalidCloseStatusCode,
WebSocketNotOpen,
WebsocketAlreadyOpen,
Utf8Error,
Unknown,
HttpHeader(Error),
HttpHeaderNoPath,
HttpHeaderIncomplete,
WriteToBufferTooSmall,
ReadFrameIncomplete,
HttpResponseCodeInvalid(Option<u16>),
AcceptStringInvalid,
ConvertInfallible,
RandCore,
UnexpectedContinuationFrame,
}
Expand description
Websocket specific errors
Variants§
InvalidOpCode
Websocket frame has an invalid opcode
InvalidFrameLength
InvalidCloseStatusCode
WebSocketNotOpen
WebsocketAlreadyOpen
Utf8Error
Unknown
HttpHeader(Error)
HttpHeaderNoPath
HttpHeaderIncomplete
WriteToBufferTooSmall
ReadFrameIncomplete
HttpResponseCodeInvalid(Option<u16>)
AcceptStringInvalid
ConvertInfallible
RandCore
UnexpectedContinuationFrame
Trait Implementations§
source§impl From<Infallible> for Error
impl From<Infallible> for Error
source§fn from(_: Infallible) -> Error
fn from(_: Infallible) -> Error
Converts to this type from the input type.
source§impl PartialEq<Error> for Error
impl PartialEq<Error> for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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