pub enum PrimaryKeyEncodeError {
UnsupportedComponentKind {
kind: &'static str,
},
TooFewComponents {
count: usize,
min: usize,
},
TooManyComponents {
count: usize,
max: usize,
},
UnitComponent {
index: usize,
},
}Expand description
PrimaryKeyEncodeError
Typed primary-key admission errors. This is deliberately separate from compact row-key encoding so composite keys do not inherit scalar-only compatibility lanes.
Variants§
Trait Implementations§
Source§impl Debug for PrimaryKeyEncodeError
impl Debug for PrimaryKeyEncodeError
Source§impl Display for PrimaryKeyEncodeError
impl Display for PrimaryKeyEncodeError
Source§impl Error for PrimaryKeyEncodeError
impl Error for PrimaryKeyEncodeError
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<PrimaryKeyEncodeError> for InternalError
impl From<PrimaryKeyEncodeError> for InternalError
Source§fn from(err: PrimaryKeyEncodeError) -> Self
fn from(err: PrimaryKeyEncodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PrimaryKeyEncodeError
impl RefUnwindSafe for PrimaryKeyEncodeError
impl Send for PrimaryKeyEncodeError
impl Sync for PrimaryKeyEncodeError
impl Unpin for PrimaryKeyEncodeError
impl UnsafeUnpin for PrimaryKeyEncodeError
impl UnwindSafe for PrimaryKeyEncodeError
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