Enum medea_jason::rpc::SessionError
source · pub enum SessionError {
SessionFinished(CloseReason),
NoCredentials,
AuthorizationFailed,
RpcClient(RpcClientError),
SessionUnexpectedlyDropped,
ConnectionLost(ConnectionLostReason),
NewConnectionInfo,
}
Expand description
Errors which can be returned from the WebSocketRpcSession
.
Variants§
SessionFinished(CloseReason)
WebSocketRpcSession
goes into SessionState::Finished
and can’t
be used.
NoCredentials
WebSocketRpcSession
doesn’t have any credentials to authorize with.
AuthorizationFailed
WebSocketRpcSession
authorization on the server was failed.
RpcClient(RpcClientError)
WebSocketRpcClient
returned RpcClientError
.
SessionUnexpectedlyDropped
WebSocketRpcSession
was unexpectedly dropped.
ConnectionLost(ConnectionLostReason)
WebSocketRpcClient
lost connection with a server.
NewConnectionInfo
WebSocketRpcSession::connect
called while connecting to the server.
So old connection process was canceled.
Trait Implementations§
source§impl Caused for SessionError
impl Caused for SessionError
source§impl Clone for SessionError
impl Clone for SessionError
source§fn clone(&self) -> SessionError
fn clone(&self) -> SessionError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SessionError
impl Debug for SessionError
source§impl Display for SessionError
impl Display for SessionError
source§impl From<CloseReason> for SessionError
impl From<CloseReason> for SessionError
source§fn from(original: CloseReason) -> SessionError
fn from(original: CloseReason) -> SessionError
Converts to this type from the input type.
source§impl From<ConnectionLostReason> for SessionError
impl From<ConnectionLostReason> for SessionError
source§fn from(original: ConnectionLostReason) -> SessionError
fn from(original: ConnectionLostReason) -> SessionError
Converts to this type from the input type.
source§impl From<RpcClientError> for SessionError
impl From<RpcClientError> for SessionError
source§fn from(original: RpcClientError) -> SessionError
fn from(original: RpcClientError) -> SessionError
Converts to this type from the input type.
source§impl From<SessionError> for ReconnectError
impl From<SessionError> for ReconnectError
source§fn from(original: SessionError) -> ReconnectError
fn from(original: SessionError) -> ReconnectError
Converts to this type from the input type.
source§impl From<SessionError> for RoomJoinError
impl From<SessionError> for RoomJoinError
source§fn from(original: SessionError) -> RoomJoinError
fn from(original: SessionError) -> RoomJoinError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SessionError
impl !Send for SessionError
impl !Sync for SessionError
impl Unpin for SessionError
impl !UnwindSafe for SessionError
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