pub enum KvsdError {
MaxKeyBytes {
key: String,
max_bytes: usize,
},
MaxValueBytes {
max_bytes: usize,
},
Io(Error),
Unauthenticated,
Internal(Box<dyn Error + Send + Sync>),
}
Expand description
Kvsd user facing error.
Variants§
MaxKeyBytes
The Key exceeds the maximum number of bytes specified in the protocol.
MaxValueBytes
The value exceeds the maximum number of bytes specified in the protocol.
Io(Error)
I/O related error.
Unauthenticated
Unauthenticated user request operations that require authentication.
Internal(Box<dyn Error + Send + Sync>)
Etc error, maybe bug.
Trait Implementations§
source§impl Error for KvsdError
impl Error for KvsdError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 !RefUnwindSafe for KvsdError
impl Send for KvsdError
impl Sync for KvsdError
impl Unpin for KvsdError
impl !UnwindSafe for KvsdError
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