pub struct Daemon { /* private fields */ }Expand description
Main daemon service for background credential synchronization.
The Daemon orchestrates automatic credential monitoring and synchronization
by running in the background as a systemd user service. It coordinates between
credential monitoring, configuration management, and sync operations while
providing robust error handling and observability.
§Architecture
The daemon maintains:
SyncService- Handles the actual credential synchronization logicConfigurationManager- Manages YAML configuration and targetsCredentialsManager- Monitors Claude Code credential files- Shutdown coordination - Graceful termination handling
§Monitoring Schedule
- Credential checks: Every 5 minutes (300 seconds)
- Session warnings: Every 1 minute (60 seconds)
- Post-expiry sync: 30 seconds after detection
- Startup reconciliation: Immediate on daemon start
Implementations§
Auto Trait Implementations§
impl Freeze for Daemon
impl !RefUnwindSafe for Daemon
impl Send for Daemon
impl Sync for Daemon
impl Unpin for Daemon
impl !UnwindSafe for Daemon
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