pub struct Task { /* private fields */ }Expand description
A task.
Implementations§
Source§impl Task
impl Task
Sourcepub const fn get_description(&self) -> &Option<String>
pub const fn get_description(&self) -> &Option<String>
Returns task description.
Sourcepub fn set_description(&mut self, description: String)
pub fn set_description(&mut self, description: String)
Sets task description.
Sourcepub fn add_command(&mut self, command: String, dir: String)
pub fn add_command(&mut self, command: String, dir: String)
Adds a new command to this task.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Task
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnsafeUnpin for Task
impl UnwindSafe for Task
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