#[non_exhaustive]pub enum AdaptiveSessionError {
Protocol(AdaptiveError),
Storage(String),
}Available on crate feature
std only.Expand description
Error returned by DurableAdaptiveSession distinguishing protocol and storage failures.
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.
Protocol(AdaptiveError)
Fail-closed protocol contract violation.
Storage(String)
Underlying StateStore persistence failure; in-memory state was not mutated.
Trait Implementations§
Source§impl Clone for AdaptiveSessionError
impl Clone for AdaptiveSessionError
Source§impl Debug for AdaptiveSessionError
impl Debug for AdaptiveSessionError
Source§impl Display for AdaptiveSessionError
impl Display for AdaptiveSessionError
impl Eq for AdaptiveSessionError
Source§impl Error for AdaptiveSessionError
impl Error for AdaptiveSessionError
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<AdaptiveError> for AdaptiveSessionError
impl From<AdaptiveError> for AdaptiveSessionError
Source§fn from(value: AdaptiveError) -> Self
fn from(value: AdaptiveError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AdaptiveSessionError
impl PartialEq for AdaptiveSessionError
impl StructuralPartialEq for AdaptiveSessionError
Auto Trait Implementations§
impl Forget for AdaptiveSessionError
impl Freeze for AdaptiveSessionError
impl Move for AdaptiveSessionError
impl RefUnwindSafe for AdaptiveSessionError
impl Send for AdaptiveSessionErrorwhere
RawVecInner: Send,
impl Sync for AdaptiveSessionErrorwhere
RawVecInner: Sync,
impl Unpin for AdaptiveSessionError
impl UnsafeUnpin for AdaptiveSessionError
impl UnwindSafe for AdaptiveSessionErrorwhere
RawVecInner: UnwindSafe,
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