Enum bonsaidb_client::Error
source · [−]pub enum Error<ApiError: CustomApiError> {
WebSocket(Error),
Network(Error),
InvalidUrl(String),
Disconnected,
Core(Error),
Api(ApiError),
ProtocolVersionMismatch,
}
Expand description
Errors related to working with Client
Variants
WebSocket(Error)
An error occurred from the WebSocket transport layer.
Network(Error)
An error occurred from networking.
InvalidUrl(String)
An invalid Url was provided.
Disconnected
The connection was interrupted.
Core(Error)
The connection was interrupted.
Api(ApiError)
An error from the custom API.
ProtocolVersionMismatch
The server is incompatible with this version of the client.
Trait Implementations
sourceimpl<ApiError: Debug + CustomApiError> Debug for Error<ApiError>
impl<ApiError: Debug + CustomApiError> Debug for Error<ApiError>
sourceimpl<ApiError: CustomApiError> Display for Error<ApiError> where
ApiError: Display,
impl<ApiError: CustomApiError> Display for Error<ApiError> where
ApiError: Display,
sourceimpl<ApiError: CustomApiError> Error for Error<ApiError> where
Self: Debug + Display,
impl<ApiError: CustomApiError> Error for Error<ApiError> where
Self: Debug + Display,
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl<ApiError: CustomApiError> From<Connect> for Error<ApiError>
impl<ApiError: CustomApiError> From<Connect> for Error<ApiError>
sourceimpl<ApiError: CustomApiError> From<Connecting> for Error<ApiError>
impl<ApiError: CustomApiError> From<Connecting> for Error<ApiError>
sourcefn from(other: Connecting) -> Self
fn from(other: Connecting) -> Self
Performs the conversion.
sourceimpl<ApiError: CustomApiError> From<Error<ApiError>> for Error
impl<ApiError: CustomApiError> From<Error<ApiError>> for Error
sourceimpl<ApiError: CustomApiError> From<Error> for Error<ApiError>
impl<ApiError: CustomApiError> From<Error> for Error<ApiError>
sourceimpl<ApiError: CustomApiError> From<Error> for Error<ApiError>
impl<ApiError: CustomApiError> From<Error> for Error<ApiError>
sourceimpl<ApiError: CustomApiError> From<Error> for Error<ApiError>
impl<ApiError: CustomApiError> From<Error> for Error<ApiError>
sourceimpl<ApiError: CustomApiError> From<Receiver> for Error<ApiError>
impl<ApiError: CustomApiError> From<Receiver> for Error<ApiError>
sourceimpl<ApiError: CustomApiError> From<RecvError> for Error<ApiError>
impl<ApiError: CustomApiError> From<RecvError> for Error<ApiError>
sourceimpl<T, ApiError: CustomApiError> From<SendError<T>> for Error<ApiError>
impl<T, ApiError: CustomApiError> From<SendError<T>> for Error<ApiError>
sourceimpl<ApiError: CustomApiError> From<Sender> for Error<ApiError>
impl<ApiError: CustomApiError> From<Sender> for Error<ApiError>
Auto Trait Implementations
impl<ApiError> !RefUnwindSafe for Error<ApiError>
impl<ApiError> Send for Error<ApiError>
impl<ApiError> Sync for Error<ApiError>
impl<ApiError> Unpin for Error<ApiError> where
ApiError: Unpin,
impl<ApiError> !UnwindSafe for Error<ApiError>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more