pub enum DeltasError {
UriParsing(String, String),
SubscriptionAlreadyPending,
ServerError(String, WebsocketError),
TransportError(String),
BufferFull,
NotConnected,
AlreadyConnected,
ConnectionClosed,
ConnectionError(Box<Error>),
Fatal(String),
}Variants§
UriParsing(String, String)
Failed to parse the provided URI.
SubscriptionAlreadyPending
The requested subscription is already pending and is awaiting confirmation from the server.
ServerError(String, WebsocketError)
TransportError(String)
A message failed to send via an internal channel or through the websocket channel. This is typically a fatal error and might indicate a bug in the implementation.
BufferFull
The internal message buffer is full. This likely means that messages are not being consumed fast enough. If the incoming load emits messages in bursts, consider increasing the buffer size.
NotConnected
The client has no active connections but was accessed (e.g., by calling subscribe). This typically occurs when trying to use the client before calling connect() or after the connection has been closed.
AlreadyConnected
The connect method was called while the client already had an active connection.
ConnectionClosed
The connection was closed orderly by the server, e.g. because it restarted.
ConnectionError(Box<Error>)
The connection was closed unexpectedly by the server or encountered a network error.
Fatal(String)
A fatal error occurred that cannot be recovered from.
Trait Implementations§
Source§impl Debug for DeltasError
impl Debug for DeltasError
Source§impl Display for DeltasError
impl Display for DeltasError
Source§impl Error for DeltasError
impl Error for DeltasError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<DeltasError> for SynchronizerError
impl From<DeltasError> for SynchronizerError
Source§fn from(err: DeltasError) -> Self
fn from(err: DeltasError) -> Self
Auto Trait Implementations§
impl Freeze for DeltasError
impl !RefUnwindSafe for DeltasError
impl Send for DeltasError
impl Sync for DeltasError
impl Unpin for DeltasError
impl !UnwindSafe for DeltasError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.