pub enum ReplayMode {
InjectCachedResult,
ReplayWithSameKey,
ReplayWithNewKey,
SurfaceAsFact,
}Expand description
Per-class policy for what to do with a previously-recorded effect on restore.
Variants§
InjectCachedResult
Inject the cached result_hash payload as if the call just returned.
Safe for Pure, Idempotent, and NetworkOnly by default.
ReplayWithSameKey
Re-issue the underlying tool with the same idempotency_key. Safe
only for tools the author explicitly classified Idempotent.
ReplayWithNewKey
Mint a new idempotency_key and re-issue. Dangerous — a new email
will be sent / a new charge made. Only when operator opts in.
SurfaceAsFact
Surface the previous effect as an immutable fact; do nothing on this restore. The agent’s prompt sees the result but the tool isn’t called.
Trait Implementations§
Source§impl Clone for ReplayMode
impl Clone for ReplayMode
Source§fn clone(&self) -> ReplayMode
fn clone(&self) -> ReplayMode
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 ReplayMode
impl Debug for ReplayMode
Source§impl<'de> Deserialize<'de> for ReplayMode
impl<'de> Deserialize<'de> for ReplayMode
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 ReplayMode
impl PartialEq for ReplayMode
Source§fn eq(&self, other: &ReplayMode) -> bool
fn eq(&self, other: &ReplayMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReplayMode
impl Serialize for ReplayMode
impl Copy for ReplayMode
impl Eq for ReplayMode
impl StructuralPartialEq for ReplayMode
Auto Trait Implementations§
impl Freeze for ReplayMode
impl RefUnwindSafe for ReplayMode
impl Send for ReplayMode
impl Sync for ReplayMode
impl Unpin for ReplayMode
impl UnsafeUnpin for ReplayMode
impl UnwindSafe for ReplayMode
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