#[non_exhaustive]pub enum ComputerUseSetupPhase {
Dormant,
InProgress,
RestartRequired,
ReadyForTarget,
Stopped,
Unknown(String),
}Expand description
Where the session’s setup stands: cua_setup’s state codes, camelCase.
Open: a result vocabulary, so an older client tolerates a new state.
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.
Dormant
No attempt has run.
InProgress
An attempt is running.
RestartRequired
Grants changed; only a relaunched host can recheck them.
ReadyForTarget
The worker is up with its grants; each app still needs approval.
Stopped
The chat stopped setup.
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 ComputerUseSetupPhase
impl Clone for ComputerUseSetupPhase
Source§impl Debug for ComputerUseSetupPhase
impl Debug for ComputerUseSetupPhase
Source§impl<'de> Deserialize<'de> for ComputerUseSetupPhase
impl<'de> Deserialize<'de> for ComputerUseSetupPhase
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 ComputerUseSetupPhase
Source§impl PartialEq for ComputerUseSetupPhase
impl PartialEq for ComputerUseSetupPhase
Source§impl Serialize for ComputerUseSetupPhase
impl Serialize for ComputerUseSetupPhase
impl StructuralPartialEq for ComputerUseSetupPhase
Auto Trait Implementations§
impl Freeze for ComputerUseSetupPhase
impl RefUnwindSafe for ComputerUseSetupPhase
impl Send for ComputerUseSetupPhase
impl Sync for ComputerUseSetupPhase
impl Unpin for ComputerUseSetupPhase
impl UnsafeUnpin for ComputerUseSetupPhase
impl UnwindSafe for ComputerUseSetupPhase
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