pub enum TurnStartResumeKind {
OrphanedPermission,
TurnHandoff,
DeferredToolUse,
None,
Unknown(String),
}Expand description
What a turn was given to settle before its own prompt, carried as
ResultMessage::turn_start_resume_kind (CLI 2.1.287+). A turn given
more than one reports the first in this order.
Variants§
OrphanedPermission
orphaned_permission — a permission answer whose pending request was
lost (as when a worker restarts), so the tool call is settled with
that answer.
TurnHandoff
turn_handoff — a turn in progress that the session’s client handed
over.
DeferredToolUse
deferred_tool_use — a call a PreToolUse hook deferred.
None
none — nothing to settle (resume_other is still reported, at
about 0).
Unknown(String)
A value not yet known to this version of the crate.
Implementations§
Trait Implementations§
Source§impl Clone for TurnStartResumeKind
impl Clone for TurnStartResumeKind
Source§impl Debug for TurnStartResumeKind
impl Debug for TurnStartResumeKind
Source§impl<'de> Deserialize<'de> for TurnStartResumeKind
impl<'de> Deserialize<'de> for TurnStartResumeKind
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TurnStartResumeKind
impl Display for TurnStartResumeKind
impl Eq for TurnStartResumeKind
Source§impl From<&str> for TurnStartResumeKind
impl From<&str> for TurnStartResumeKind
Source§impl Hash for TurnStartResumeKind
impl Hash for TurnStartResumeKind
Source§impl PartialEq for TurnStartResumeKind
impl PartialEq for TurnStartResumeKind
Source§impl Serialize for TurnStartResumeKind
impl Serialize for TurnStartResumeKind
impl StructuralPartialEq for TurnStartResumeKind
Auto Trait Implementations§
impl Freeze for TurnStartResumeKind
impl RefUnwindSafe for TurnStartResumeKind
impl Send for TurnStartResumeKind
impl Sync for TurnStartResumeKind
impl Unpin for TurnStartResumeKind
impl UnsafeUnpin for TurnStartResumeKind
impl UnwindSafe for TurnStartResumeKind
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