pub enum Hint {
SpawnDetached,
SpawnFresh,
Wait(TaskHandle),
}Expand description
A next step this error names unambiguously enough for a host to build its
own hint text from, without parsing this error’s message. Not every
error carries one: an ordinary operational failure has no next step this
crate can name from here, and stays None.
Variants§
SpawnDetached
The caller is itself a task in a different workspace; spawning here
needs the detached escape — basis spawn --detached <PROMPT>, in
basis-cli’s words.
SpawnFresh
No task in the target workspace has a conversation to continue yet —
basis spawn <PROMPT>, in basis-cli’s words.
Wait(TaskHandle)
The conversation named exists but cannot be continued right now —
still running (one executor per conversation), or never attached —
so the next step is the task itself: basis wait <task>.
Trait Implementations§
impl Eq for Hint
impl StructuralPartialEq for Hint
Auto Trait Implementations§
impl Freeze for Hint
impl RefUnwindSafe for Hint
impl Send for Hint
impl Sync for Hint
impl Unpin for Hint
impl UnsafeUnpin for Hint
impl UnwindSafe for Hint
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
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,
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
Compare self to
key and return true if they are equal.