Enum bonsaidb::client::Error [−][src]
pub enum Error {
WebSocket(Error),
Network(Error),
InvalidUrl(String),
Disconnected,
Core(Error),
Api {
name: Name,
error: Bytes,
},
ProtocolVersionMismatch,
}
Expand description
Errors related to working with Client
Variants
WebSocket(Error)
An error occurred from the WebSocket transport layer.
Network(Error)
Tuple Fields
0: Error
An error occurred from networking.
InvalidUrl(String)
Tuple Fields
0: String
An invalid Url was provided.
Disconnected
The connection was interrupted.
Core(Error)
Tuple Fields
0: Error
The connection was interrupted.
Api
Fields
name: Name
The unique name of the api that responded with an error
error: Bytes
The serialized bytes of the error type.
An error from a Api
. The actual error is still serialized, as it
could be any type.
ProtocolVersionMismatch
The server is incompatible with this version of the client.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more