#[non_exhaustive]pub enum PartitionValueError {
EmptyKey,
KeyTooLong {
max_bytes: usize,
},
ContextTooLarge {
max_bytes: usize,
},
NonTerminalResult {
status: BatchStatus,
},
CountTooLarge,
}Expand description
Invalid public partition input.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptyKey
A partition key was empty.
KeyTooLong
A partition key exceeded the durable byte bound.
ContextTooLarge
A partition context exceeded the schema-3 bound.
NonTerminalResult
A worker result used a non-terminal status.
Fields
§
status: BatchStatusRejected status.
CountTooLarge
A counter cannot be represented by every durable adapter.
Trait Implementations§
Source§impl Clone for PartitionValueError
impl Clone for PartitionValueError
Source§fn clone(&self) -> PartitionValueError
fn clone(&self) -> PartitionValueError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PartitionValueError
impl Debug for PartitionValueError
Source§impl Display for PartitionValueError
impl Display for PartitionValueError
impl Eq for PartitionValueError
Source§impl Error for PartitionValueError
impl Error for PartitionValueError
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 PartitionValueError
impl PartialEq for PartitionValueError
impl StructuralPartialEq for PartitionValueError
Auto Trait Implementations§
impl Freeze for PartitionValueError
impl RefUnwindSafe for PartitionValueError
impl Send for PartitionValueError
impl Sync for PartitionValueError
impl Unpin for PartitionValueError
impl UnsafeUnpin for PartitionValueError
impl UnwindSafe for PartitionValueError
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