Enum glimesh::WebsocketConnectionError [−][src]
pub enum WebsocketConnectionError { Glimesh(GlimeshError), Auth(AuthError), QueryParamSerialization(Error), SerdeJson(Error), Tungstenite(Error), SendError(SendError<Message>), Timeout(Elapsed), AlreadyConnected, SocketClosed, Unknown(Error), }
Expand description
Errors that can occur using the websocket based connection
Variants
Glimesh(GlimeshError)
A glimesh error ocurred
Auth(AuthError)
An auth error ocurred
QueryParamSerialization(Error)
Failed to serialize query param
SerdeJson(Error)
Failed to (de)serialize a json payload
Websocket negotiating failure
SendError(SendError<Message>)
Socket message sender channel likely closed.
Timeout(Elapsed)
Request sent over the socket reached its timeout before hearing a response.
connect() was called on a socket before it released the resources used in the previous connection attempt.
Attempted to send or receive on a closed connection
Unknown(Error)
Some other error occurred.
Trait Implementations
impl Debug for WebsocketConnectionError
[src]
impl Debug for WebsocketConnectionError
[src]impl Display for WebsocketConnectionError
[src]
impl Display for WebsocketConnectionError
[src]impl Error for WebsocketConnectionError
[src]
impl Error for WebsocketConnectionError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[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<AuthError> for WebsocketConnectionError
[src]
impl From<AuthError> for WebsocketConnectionError
[src]impl From<Elapsed> for WebsocketConnectionError
[src]
impl From<Elapsed> for WebsocketConnectionError
[src]impl From<Error> for WebsocketConnectionError
[src]
impl From<Error> for WebsocketConnectionError
[src]impl From<Error> for WebsocketConnectionError
[src]
impl From<Error> for WebsocketConnectionError
[src]impl From<Error> for WebsocketConnectionError
[src]
impl From<Error> for WebsocketConnectionError
[src]impl From<Error> for WebsocketConnectionError
[src]
impl From<Error> for WebsocketConnectionError
[src]impl From<GlimeshError> for WebsocketConnectionError
[src]
impl From<GlimeshError> for WebsocketConnectionError
[src]fn from(source: GlimeshError) -> Self
[src]
fn from(source: GlimeshError) -> Self
[src]Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for WebsocketConnectionError
impl Send for WebsocketConnectionError
impl Sync for WebsocketConnectionError
impl Unpin for WebsocketConnectionError
impl !UnwindSafe for WebsocketConnectionError
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
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,