pub enum LLError {
Transport(Box<dyn Error + Send + Sync>),
NotSupported,
ResourceExhausted,
Protocol {
code: u32,
detail: Bytes,
},
}Expand description
Errors at the LL (low-level) layer.
These are transport and system-level errors only. Semantic errors (invalid paths, type mismatches, codec failures) belong in higher layers.
Variants§
Transport(Box<dyn Error + Send + Sync>)
Generic I/O or transport failure.
Use this for network errors, file I/O errors, IPC failures, etc.
NotSupported
The operation is not supported by this store.
For example, writing to a read-only store.
ResourceExhausted
Resource limit exceeded.
Memory exhaustion, too many open handles, etc.
Protocol
Protocol-specific error with a numeric code.
The code and detail are opaque to the LL layer. Higher layers or the transport protocol define their meaning.
Trait Implementations§
Source§impl Error for LLError
impl Error for LLError
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 LLError
impl !RefUnwindSafe for LLError
impl !UnwindSafe for LLError
impl Send for LLError
impl Sync for LLError
impl Unpin for LLError
impl UnsafeUnpin for LLError
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