#[non_exhaustive]pub enum ModeStance {
Normal,
Coordination,
LeavesPlan,
}Expand description
How the permission modes treat a tool’s calls: ToolSpec::stance.
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.
Normal
Coordination
A coordination primitive that touches no file, shell or network: a
self-contained call of it is spared Plan and DontAsk.
LeavesPlan
The call that takes the session out of plan mode, which plan mode would otherwise refuse as a change of state.
Trait Implementations§
Source§impl Clone for ModeStance
impl Clone for ModeStance
impl Copy for ModeStance
Source§impl Debug for ModeStance
impl Debug for ModeStance
Source§impl Default for ModeStance
impl Default for ModeStance
impl Eq for ModeStance
Source§impl PartialEq for ModeStance
impl PartialEq for ModeStance
impl StructuralPartialEq for ModeStance
Auto Trait Implementations§
impl Forget for ModeStance
impl Freeze for ModeStance
impl Move for ModeStance
impl RefUnwindSafe for ModeStance
impl Send for ModeStance
impl Sync for ModeStance
impl Unpin for ModeStance
impl UnsafeUnpin for ModeStance
impl UnwindSafe for ModeStance
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