pub enum SerializeError {
Serialize(String),
Deserialize(String),
DeserializeSizeLimitExceeded {
len: usize,
max_bytes: usize,
},
}Expand description
Generic CBOR serialization infrastructure.
This module is format-level only:
- No database-layer constants or policy limits are defined here.
- Callers that need bounded decode must pass explicit limits.
- Engine-specific decode policy belongs in subsystem wrappers (for example,
db::codec).
SerializeError
Variants§
Implementations§
Source§impl SerializeError
impl SerializeError
Sourcepub const fn kind(&self) -> SerializeErrorKind
pub const fn kind(&self) -> SerializeErrorKind
Return a stable error kind independent of backend error-message text.
Trait Implementations§
Source§impl Debug for SerializeError
impl Debug for SerializeError
Source§impl Display for SerializeError
impl Display for SerializeError
Source§impl Error for SerializeError
impl Error for SerializeError
1.30.0 · 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()
Source§impl From<SerializeError> for InternalError
impl From<SerializeError> for InternalError
Source§fn from(err: SerializeError) -> Self
fn from(err: SerializeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SerializeError
impl RefUnwindSafe for SerializeError
impl Send for SerializeError
impl Sync for SerializeError
impl Unpin for SerializeError
impl UnsafeUnpin for SerializeError
impl UnwindSafe for SerializeError
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