pub enum GoalCommand {
Set(String),
Clear,
Status,
}Expand description
A /goal sub-command carried by Op::Goal.
Variants§
Set(String)
Set (or replace) the active goal condition.
Clear
Clear the active goal, stopping the loop.
Status
Report the current goal status.
Trait Implementations§
Source§impl Clone for GoalCommand
impl Clone for GoalCommand
Source§impl Debug for GoalCommand
impl Debug for GoalCommand
Source§impl<'de> Deserialize<'de> for GoalCommand
impl<'de> Deserialize<'de> for GoalCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GoalCommand
Source§impl PartialEq for GoalCommand
impl PartialEq for GoalCommand
Source§impl Serialize for GoalCommand
impl Serialize for GoalCommand
impl StructuralPartialEq for GoalCommand
Auto Trait Implementations§
impl Freeze for GoalCommand
impl RefUnwindSafe for GoalCommand
impl Send for GoalCommand
impl Sync for GoalCommand
impl Unpin for GoalCommand
impl UnsafeUnpin for GoalCommand
impl UnwindSafe for GoalCommand
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