pub enum PartitionKeyParseError {
MissingBraces,
MalformedBody,
UnknownFamilyPrefix(String),
InvalidIndex(String),
}Expand description
Errors produced when parsing a PartitionKey back into a
Partition.
The key is treated as opaque on the wire; parsing failures surface
as Err so malformed producer output fails loudly instead of
silently routing to a ghost partition.
Variants§
MissingBraces
Key did not start with { and end with } (e.g. missing braces).
MalformedBody
Interior did not split into exactly <prefix>:<index>.
UnknownFamilyPrefix(String)
<prefix> did not match a known family (fp, b, q).
InvalidIndex(String)
<index> did not parse as a u16.
Trait Implementations§
Source§impl Clone for PartitionKeyParseError
impl Clone for PartitionKeyParseError
Source§fn clone(&self) -> PartitionKeyParseError
fn clone(&self) -> PartitionKeyParseError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PartitionKeyParseError
impl Debug for PartitionKeyParseError
Source§impl Display for PartitionKeyParseError
impl Display for PartitionKeyParseError
Source§impl Error for PartitionKeyParseError
impl Error for PartitionKeyParseError
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 PartialEq for PartitionKeyParseError
impl PartialEq for PartitionKeyParseError
impl Eq for PartitionKeyParseError
impl StructuralPartialEq for PartitionKeyParseError
Auto Trait Implementations§
impl Freeze for PartitionKeyParseError
impl RefUnwindSafe for PartitionKeyParseError
impl Send for PartitionKeyParseError
impl Sync for PartitionKeyParseError
impl Unpin for PartitionKeyParseError
impl UnsafeUnpin for PartitionKeyParseError
impl UnwindSafe for PartitionKeyParseError
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