[−][src]Struct mind::mind::Mind
The productive mind.
Implementations
impl Mind
[src]
pub fn from(tasks: Vec<Task>, reminders: Vec<Reminder>) -> Self
[src]
pub fn version() -> &'static str
[src]
Get the version. See ~/.mind/version
pub fn tasks(&self) -> &Vec<Task>
[src]
Get the pending tasks. See ~/.mind/tasks.yml
pub fn reminders(&self) -> &Vec<Reminder>
[src]
Get the reminders. See ~/.mind/reminders.yml
pub fn focused(&self) -> Option<&Task>
[src]
Get the focused task
pub fn remind_tasks(&mut self)
[src]
Go through the reminders and taks proper action.
pub fn backlog(&self) -> Duration
[src]
Total backlog
pub fn productivity(&self) -> Productivity
[src]
Productivity from backlog
pub fn task_to_reminder(&mut self, index: usize) -> Result<()>
[src]
Turn the specified task into a reminder
pub fn act(&mut self, command: Command)
[src]
Act based on the given command.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Mind
impl Send for Mind
impl Sync for Mind
impl Unpin for Mind
impl UnwindSafe for Mind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,