pub enum ClosedStateReason {
NeverConnected,
CouldNotEstablish(TransportError),
ConnectionLost(ConnectionLostReason),
FirstServerMsgIsNotRpcSettings,
}
Expand description
The reason of why WebSocketRpcClient
/platform::RpcTransport
went
into a closed state.
Variants§
NeverConnected
Indicates that connection with server has never been established.
CouldNotEstablish(TransportError)
Failed to establish a connection between a client and a server.
ConnectionLost(ConnectionLostReason)
Lost a connection with a server.
FirstServerMsgIsNotRpcSettings
First received ServerMsg
after WebSocketRpcClient::connect
is
not ServerMsg::RpcSettings
.
Trait Implementations§
Source§impl Clone for ClosedStateReason
impl Clone for ClosedStateReason
Source§fn clone(&self) -> ClosedStateReason
fn clone(&self) -> ClosedStateReason
Returns a duplicate 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 ClosedStateReason
impl Debug for ClosedStateReason
Source§impl From<ClosedStateReason> for RpcClientError
impl From<ClosedStateReason> for RpcClientError
Source§fn from(value: ClosedStateReason) -> Self
fn from(value: ClosedStateReason) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ClosedStateReason
impl PartialEq for ClosedStateReason
impl StructuralPartialEq for ClosedStateReason
Auto Trait Implementations§
impl Freeze for ClosedStateReason
impl !RefUnwindSafe for ClosedStateReason
impl !Send for ClosedStateReason
impl !Sync for ClosedStateReason
impl Unpin for ClosedStateReason
impl !UnwindSafe for ClosedStateReason
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