pub enum TransportError {
}Expand description
Represents errors that can occur during transport operations.
Variants§
ConnectionFailed(String)
Failed to establish a connection.
ConnectionLost(String)
An established connection was lost.
SendFailed(String)
Failed to send a message.
ReceiveFailed(String)
Failed to receive a message.
SerializationFailed(String)
Failed to serialize or deserialize a message.
ProtocolError(String)
A protocol-level error occurred.
Timeout
The operation did not complete within the specified timeout.
ConfigurationError(String)
The transport was configured with invalid parameters.
AuthenticationFailed(String)
Authentication with the remote endpoint failed.
RateLimitExceeded
The request was rejected due to rate limiting.
NotAvailable(String)
The requested transport is not available.
Io(String)
An underlying I/O error occurred.
Internal(String)
An unexpected internal error occurred.
Trait Implementations§
Source§impl Clone for TransportError
impl Clone for TransportError
Source§fn clone(&self) -> TransportError
fn clone(&self) -> TransportError
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 TransportError
impl Debug for TransportError
Source§impl Display for TransportError
impl Display for TransportError
Source§impl Error for TransportError
impl Error for TransportError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for TransportError
impl From<Error> for TransportError
Auto Trait Implementations§
impl Freeze for TransportError
impl RefUnwindSafe for TransportError
impl Send for TransportError
impl Sync for TransportError
impl Unpin for TransportError
impl UnwindSafe for TransportError
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