pub enum StateProjectionError {
DuplicateKey(String),
MissingKey(String),
UnknownKeys(Vec<String>),
RequiredSlotAbsent(String),
Cardinality {
expected: usize,
actual: usize,
},
Exception(Exception),
}Expand description
Error declaring, restoring, or evaluating a keyed state projection.
Variants§
DuplicateKey(String)
A projection declared the same key more than once.
MissingKey(String)
A projected key was absent from the supplied snapshot.
UnknownKeys(Vec<String>)
The supplied snapshot contains keys absent from the projection.
RequiredSlotAbsent(String)
A required slot was absent in the supplied snapshot.
Cardinality
A compiled state vector has the wrong number of present values.
Fields
Exception(Exception)
The upstream runtime rejected an operation needed to restore state.
Trait Implementations§
Source§impl Debug for StateProjectionError
impl Debug for StateProjectionError
Source§impl Display for StateProjectionError
impl Display for StateProjectionError
Source§impl Error for StateProjectionError
impl Error for StateProjectionError
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<Exception> for StateProjectionError
impl From<Exception> for StateProjectionError
Source§impl From<StateProjectionError> for IoError
impl From<StateProjectionError> for IoError
Source§fn from(source: StateProjectionError) -> Self
fn from(source: StateProjectionError) -> Self
Converts to this type from the input type.
Source§impl From<StateProjectionError> for Exception
impl From<StateProjectionError> for Exception
Source§fn from(error: StateProjectionError) -> Self
fn from(error: StateProjectionError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StateProjectionError
impl PartialEq for StateProjectionError
Source§fn eq(&self, other: &StateProjectionError) -> bool
fn eq(&self, other: &StateProjectionError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StateProjectionError
Auto Trait Implementations§
impl Freeze for StateProjectionError
impl RefUnwindSafe for StateProjectionError
impl Send for StateProjectionError
impl Sync for StateProjectionError
impl Unpin for StateProjectionError
impl UnsafeUnpin for StateProjectionError
impl UnwindSafe for StateProjectionError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Convert into an
Option.