Skip to main content

Module daemon

Module daemon 

Source
Expand description

Daemon lifecycle, locking, and local IPC support.

Structs§

BandwidthSnapshot
Aggregate transfer counters included in a daemon status report.
Daemon
Owns the Iroh node, synchronization intents, IPC server, and daemon lifecycle state.
DaemonConfig
Configuration used to construct and run a daemon.
DaemonHandle
Shared daemon state used by the IPC server.
DaemonState
Identifying and lifecycle information for a daemon instance.
DaemonStatusReport
A persisted snapshot of daemon activity and synchronization progress.
FolderEntry
A folder managed by the daemon.
FolderRegistry
Registry of folders and subscriptions currently managed by the daemon.
FolderStatus
A managed folder summary returned by the daemon.
FolderStatusReport
Activity and error information for one managed folder.
IntentSupervisor
Starts synchronization intents and restarts failed intents with bounded exponential backoff.
IpcClient
A client for sending requests to the daemon.
IpcListener
Socket path and binding helper for the daemon.
IpcRequest
A request sent over the local daemon control channel.
IpcServer
A server for the daemon’s local control channel.
ManagedPool
A fixed-size Rayon pool owned by a daemon for CPU-bound archive work.
PidLock
Exclusive process lock protecting the redb-backed node.
ScheduleStatus
The current schedule state included in a daemon status report.
StateFile
SQLite-backed persistence for daemon state and status.
SupervisedIntent
A synchronization intent together with the information needed to restart it.

Enums§

DaemonStatus
The lifecycle state persisted by a running daemon.
IpcCommand
Commands supported by the daemon control channel.
IpcResponse
A response returned by the daemon control channel.

Functions§

current_timestamp
daemon_client
Return an IPC client only when a lock owner answers a status probe.
daemon_socket_path
Return the socket path used for a data directory.
pid_is_alive
Check whether a process ID is currently present on the local system.
try_daemon
Alias for the one-shot command routing check.
with_node
Run a node operation with an already-running daemon client.