[][src]Struct cassiopeia::Cassiopeia

pub struct Cassiopeia { /* fields omitted */ }

A state handler and primary API for all cass interactions

Implementations

impl Cassiopeia[src]

pub fn load(path: &str) -> Option<Self>[src]

Load a cass file from disk, parsing it into a TimeFile

pub fn store(&self) -> Option<()>[src]

Store the modified time file back to disk

pub fn start(&mut self, round: bool) -> Option<()>[src]

Start a new work session (with optional 15 minute rounding)

pub fn stop(&mut self, round: bool) -> Option<()>[src]

Stop the existing work session (with optional 15 minute rounding)

pub fn invoice<'slf>(&'slf mut self) -> Invoicer<'slf>[src]

Add an invoice block to the time file

pub fn update(&mut self) -> Option<()>[src]

Write out the file IR as is, updating only the header version

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.