pub enum ReplicatedTextSessionError<A, P, M>{
Contract(String),
Architecture(A),
Policy(P),
Mechanism(M),
State(StateError),
PromptCache(PromptCacheError),
CommitAborted {
epoch: DistributedCommitEpoch,
},
CommitIndeterminate {
epoch: DistributedCommitEpoch,
phase: DistributedCommitPhase,
},
}Expand description
Cold-path failure from replicated-text construction or session control.
Variants§
Contract(String)
The prepared architecture disagreed with its selected realization.
Architecture(A)
Architecture construction or execution failed.
Policy(P)
Bounded residency failed.
Mechanism(M)
A native mechanism failed.
State(StateError)
Mutable-state access failed.
PromptCache(PromptCacheError)
Prompt-cache identity or manifest validation failed.
CommitAborted
The globally fixed final decision was an abort.
Fields
§
epoch: DistributedCommitEpochDurable transaction identity.
CommitIndeterminate
This rank may have contributed to a final decision it could not observe.
Fields
§
epoch: DistributedCommitEpochDurable transaction identity.
§
phase: DistributedCommitPhaseExact final-decision cut which was not observed.
Trait Implementations§
Source§impl<A, P, M> Debug for ReplicatedTextSessionError<A, P, M>
impl<A, P, M> Debug for ReplicatedTextSessionError<A, P, M>
Source§impl<A, P, M> Display for ReplicatedTextSessionError<A, P, M>
impl<A, P, M> Display for ReplicatedTextSessionError<A, P, M>
Source§impl<A, P, M> Error for ReplicatedTextSessionError<A, P, M>
impl<A, P, M> Error for ReplicatedTextSessionError<A, P, M>
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<A, P, M> From<PromptCacheError> for ReplicatedTextSessionError<A, P, M>
impl<A, P, M> From<PromptCacheError> for ReplicatedTextSessionError<A, P, M>
Source§fn from(source: PromptCacheError) -> Self
fn from(source: PromptCacheError) -> Self
Converts to this type from the input type.
Source§impl<A, P, M> From<StateError> for ReplicatedTextSessionError<A, P, M>
impl<A, P, M> From<StateError> for ReplicatedTextSessionError<A, P, M>
Source§fn from(source: StateError) -> Self
fn from(source: StateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<A, P, M> Freeze for ReplicatedTextSessionError<A, P, M>
impl<A, P, M> RefUnwindSafe for ReplicatedTextSessionError<A, P, M>
impl<A, P, M> Send for ReplicatedTextSessionError<A, P, M>
impl<A, P, M> Sync for ReplicatedTextSessionError<A, P, M>
impl<A, P, M> Unpin for ReplicatedTextSessionError<A, P, M>
impl<A, P, M> UnsafeUnpin for ReplicatedTextSessionError<A, P, M>
impl<A, P, M> UnwindSafe for ReplicatedTextSessionError<A, P, M>
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