[−][src]Struct cassiopeia::Cassiopeia
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
impl RefUnwindSafe for Cassiopeia
[src]
impl Send for Cassiopeia
[src]
impl Sync for Cassiopeia
[src]
impl Unpin for Cassiopeia
[src]
impl UnwindSafe for Cassiopeia
[src]
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,
pub 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, 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.
pub 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>,