pub enum DaemonEvent {
Message {
msg: ClientMessage,
reply: UnboundedSender<ServerMessage>,
},
ToolCall(ToolRequest),
Shutdown,
}Expand description
Inbound event from any source, processed by the central event loop.
Variants§
Message
A client message from any source (socket, telegram, discord).
Reply channel streams ServerMessages back to the caller.
Fields
§
msg: ClientMessageThe parsed client message.
§
reply: UnboundedSender<ServerMessage>Per-request reply channel for streaming ServerMessages back.
ToolCall(ToolRequest)
A tool call from an agent, routed through DaemonHook::dispatch_tool.
Shutdown
Graceful shutdown request.
Auto Trait Implementations§
impl Freeze for DaemonEvent
impl !RefUnwindSafe for DaemonEvent
impl Send for DaemonEvent
impl Sync for DaemonEvent
impl Unpin for DaemonEvent
impl UnsafeUnpin for DaemonEvent
impl !UnwindSafe for DaemonEvent
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
Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more