pub enum HookAction {
Heartbeat,
Started {
project_name: String,
},
Switched {
from: String,
to: String,
},
Stopped {
project_name: String,
},
SessionCreated,
SessionStarted {
project_name: String,
},
IdleResume {
project_name: String,
},
}Expand description
What happened as a result of the hook firing.
Variants§
Heartbeat
Session heartbeat updated, no project change.
Started
Started tracking a new project.
Switched
Switched from one project to another.
Stopped
Stopped tracking (left project directory).
SessionCreated
New session created, no project detected.
SessionStarted
New session created and started tracking.
IdleResume
Idle gap detected; previous entry stopped at last heartbeat, new one started.
Trait Implementations§
Source§impl Debug for HookAction
impl Debug for HookAction
Source§impl PartialEq for HookAction
impl PartialEq for HookAction
impl Eq for HookAction
impl StructuralPartialEq for HookAction
Auto Trait Implementations§
impl Freeze for HookAction
impl RefUnwindSafe for HookAction
impl Send for HookAction
impl Sync for HookAction
impl Unpin for HookAction
impl UnsafeUnpin for HookAction
impl UnwindSafe for HookAction
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