pub enum FailReason {
RuntimeError {
message: String,
},
Budget,
AwaitingExternal {
name: String,
},
}Expand description
Why replay stopped without diverging.
RuntimeError is a struct variant ({ message: String }), not a newtype
(RuntimeError(String)) — serde’s internally-tagged representation
(#[serde(tag = "type")]) cannot serialize a newtype variant wrapping a
non-map payload like a bare String.
Variants§
RuntimeError
A runtime error surfaced during stepping.
Budget
A step/line budget was exceeded (the caller can restart fresh).
AwaitingExternal
Live replay hit a deferred external and parked. Resolve it and call
StorySession::continue_replay.
Trait Implementations§
Source§impl Clone for FailReason
impl Clone for FailReason
Source§fn clone(&self) -> FailReason
fn clone(&self) -> FailReason
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 FailReason
impl Debug for FailReason
Source§impl<'de> Deserialize<'de> for FailReason
impl<'de> Deserialize<'de> for FailReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FailReason
impl PartialEq for FailReason
Source§impl Serialize for FailReason
impl Serialize for FailReason
impl StructuralPartialEq for FailReason
Auto Trait Implementations§
impl Freeze for FailReason
impl RefUnwindSafe for FailReason
impl Send for FailReason
impl Sync for FailReason
impl Unpin for FailReason
impl UnsafeUnpin for FailReason
impl UnwindSafe for FailReason
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