pub enum HistoryRewindOutcome {
Success,
SessionBusy,
FileChangeTrackingDisabled,
UnsupportedRemoteSession,
FilesRolledBack,
RollbackIncomplete,
TruncationFailed,
CheckpointCleanupFailed,
SnapshotPruneFailed,
Unknown,
}Expand description
Outcome of a rewind request.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Variants§
Success
The requested rewind completed; reachable in either mode.
SessionBusy
The session still has work that may mutate files or history; reachable in either mode.
FileChangeTrackingDisabled
A conversation-and-files rewind was requested for a session that did not enable capture; conversation-only rewinds never produce this.
UnsupportedRemoteSession
Remote-backed rewind routing is not supported; reachable in either mode.
FilesRolledBack
File restore failed and all applied file changes were rolled back; only conversation-and-files rewinds produce this.
RollbackIncomplete
File restore failed and its rollback could not fully restore the pre-rewind state; only conversation-and-files rewinds produce this.
TruncationFailed
Conversation truncation failed. In conversation-and-files mode any files that were restored are left in place because conversation history cannot be un-truncated; in conversation-only mode no files are restored. Consult restoredFiles for what, if anything, was applied.
CheckpointCleanupFailed
The conversation was rewound (and, in conversation-and-files mode, captured files were restored), but persisted checkpoints could not be cleaned up; reachable in either mode.
SnapshotPruneFailed
Files and conversation were rewound, but obsolete file snapshots could not be removed; only conversation-and-files rewinds produce this.
Unknown
Unknown variant for forward compatibility.
Trait Implementations§
Source§impl Clone for HistoryRewindOutcome
impl Clone for HistoryRewindOutcome
Source§fn clone(&self) -> HistoryRewindOutcome
fn clone(&self) -> HistoryRewindOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HistoryRewindOutcome
impl Debug for HistoryRewindOutcome
Source§impl Default for HistoryRewindOutcome
impl Default for HistoryRewindOutcome
Source§fn default() -> HistoryRewindOutcome
fn default() -> HistoryRewindOutcome
Source§impl<'de> Deserialize<'de> for HistoryRewindOutcome
impl<'de> Deserialize<'de> for HistoryRewindOutcome
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>,
impl Eq for HistoryRewindOutcome
Source§impl PartialEq for HistoryRewindOutcome
impl PartialEq for HistoryRewindOutcome
Source§impl Serialize for HistoryRewindOutcome
impl Serialize for HistoryRewindOutcome
impl StructuralPartialEq for HistoryRewindOutcome
Auto Trait Implementations§
impl Freeze for HistoryRewindOutcome
impl RefUnwindSafe for HistoryRewindOutcome
impl Send for HistoryRewindOutcome
impl Sync for HistoryRewindOutcome
impl Unpin for HistoryRewindOutcome
impl UnsafeUnpin for HistoryRewindOutcome
impl UnwindSafe for HistoryRewindOutcome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.