#[non_exhaustive]pub enum BackgroundState {
Backgrounded,
Unknown(String),
}Expand description
Presentation state of a backgrounded running tool item. Open — new states
are additive. Asserts presentation only, never durable backgrounding (that
claim stays Item::background, set only behind a durable
TaskBackgrounded).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Backgrounded
The running item backgrounded; render the Backgrounded row.
May appear on any running backgrounded toolCall — auto-yield
or an explicit user/timeout background, with or without
background/backgroundInitiator.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for BackgroundState
impl Clone for BackgroundState
Source§impl Debug for BackgroundState
impl Debug for BackgroundState
Source§impl<'de> Deserialize<'de> for BackgroundState
impl<'de> Deserialize<'de> for BackgroundState
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
impl Eq for BackgroundState
Source§impl PartialEq for BackgroundState
impl PartialEq for BackgroundState
Source§impl Serialize for BackgroundState
impl Serialize for BackgroundState
impl StructuralPartialEq for BackgroundState
Auto Trait Implementations§
impl Forget for BackgroundState
impl Freeze for BackgroundState
impl Move for BackgroundState
impl RefUnwindSafe for BackgroundState
impl Send for BackgroundState
impl Sync for BackgroundState
impl Unpin for BackgroundState
impl UnsafeUnpin for BackgroundState
impl UnwindSafe for BackgroundState
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