pub enum Error {
}
Expand description
Error type for VedDB client operations
Variants§
Connection(String)
Network or connection error
Protocol(String)
Protocol error
Server(String)
Server returned an error
Timeout(Elapsed)
Operation timed out
Io(Error)
I/O error
Serialization(String)
Serialization/Deserialization error
InvalidArgument(String)
Invalid argument provided
KeyNotFound
Key not found
PoolExhausted
Connection pool exhausted
InvalidResponse(String)
Invalid response from server
AuthenticationFailed
Authentication failed
NotConnected
Not connected to server
NotSupported
Operation not supported
Json(Error)
JSON serialization/deserialization error
Other(String)
Other errors
Implementations§
Source§impl Error
impl Error
Sourcepub fn connection<S: Into<String>>(msg: S) -> Self
pub fn connection<S: Into<String>>(msg: S) -> Self
Create a connection error
Sourcepub fn invalid_argument<S: Into<String>>(msg: S) -> Self
pub fn invalid_argument<S: Into<String>>(msg: S) -> Self
Create an invalid argument error
Sourcepub fn invalid_response<S: Into<String>>(msg: S) -> Self
pub fn invalid_response<S: Into<String>>(msg: S) -> Self
Create an invalid response error
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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