pub struct DaemonHandle {
pub config: DaemonConfig,
pub event_tx: DaemonEventSender,
pub shutdown_tx: Sender<()>,
pub daemon: Daemon,
/* private fields */
}Expand description
Handle returned by Daemon::start — holds the event sender and shutdown trigger.
The caller spawns transports (socket, TCP) using setup_socket and
setup_tcp, passing clones of event_tx and shutdown_tx.
Fields§
§config: DaemonConfigThe loaded daemon configuration.
event_tx: DaemonEventSenderSender for injecting events into the daemon event loop. Clone this and pass to transport setup functions.
shutdown_tx: Sender<()>Broadcast shutdown — call .subscribe() for transport shutdown,
or use DaemonHandle::shutdown to trigger.
daemon: DaemonThe shared daemon state — exposed for backend/product servers that layer additional APIs on top.
Implementations§
Source§impl DaemonHandle
impl DaemonHandle
Sourcepub async fn wait_until_ready(&self) -> Result<()>
pub async fn wait_until_ready(&self) -> Result<()>
Wait until the active model provider is ready.
No-op for remote providers. Kept for API compatibility.
Auto Trait Implementations§
impl Freeze for DaemonHandle
impl !RefUnwindSafe for DaemonHandle
impl Send for DaemonHandle
impl Sync for DaemonHandle
impl Unpin for DaemonHandle
impl UnsafeUnpin for DaemonHandle
impl !UnwindSafe for DaemonHandle
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