pub enum ClientError {
Show 14 variants
DriverStopped,
CommandQueueFull,
PushBufferFull(String),
DuplicateChannel(String),
AlreadyJoined(String),
ChannelNotJoined(String),
SocketNotConnected,
BinaryNotSupported,
Timeout {
operation: ClientOperation,
timeout: Duration,
},
Interrupted {
operation: ClientOperation,
},
Protocol(String),
JoinPayload {
topic: String,
message: String,
},
JoinRejected {
topic: String,
response: Payload,
},
UnknownTopic(String),
}Expand description
Failure returned by the managed socket or channel API.
Variants§
DriverStopped
The driver stopped and cannot accept more commands.
CommandQueueFull
A non-blocking subscription command could not enter the bounded queue.
PushBufferFull(String)
Too many calls are waiting for this topic to become joined.
DuplicateChannel(String)
A channel handle already exists for this topic.
AlreadyJoined(String)
The requested channel is already joined or joining.
ChannelNotJoined(String)
The channel must be joined before accepting this operation.
SocketNotConnected
The operation requires an active socket connection.
BinaryNotSupported
The active transport cannot carry Phoenix binary frames.
Timeout
The requested operation did not complete before its deadline.
Fields
operation: ClientOperationOperation that timed out.
Interrupted
A transmitted operation lost its connection before receiving a reply.
Fields
operation: ClientOperationInterrupted operation.
Protocol(String)
Protocol state rejected an operation or incoming frame.
JoinPayload
Loading a fresh join payload failed.
Fields
JoinRejected
Phoenix returned an error reply to a join.
UnknownTopic(String)
No registered channel matched the topic.
Trait Implementations§
Source§impl Clone for ClientError
impl Clone for ClientError
Source§fn clone(&self) -> ClientError
fn clone(&self) -> ClientError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ClientError
impl Debug for ClientError
Source§impl Display for ClientError
impl Display for ClientError
Source§impl Error for ClientError
impl Error for ClientError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ClientError> for CallJsonError
impl From<ClientError> for CallJsonError
Source§fn from(source: ClientError) -> Self
fn from(source: ClientError) -> Self
Source§impl PartialEq for ClientError
impl PartialEq for ClientError
Source§fn eq(&self, other: &ClientError) -> bool
fn eq(&self, other: &ClientError) -> bool
self and other values to be equal, and is used by ==.