pub struct ChannelMessageProvider { /* private fields */ }Expand description
A MessageProvider backed by tokio unbounded mpsc channels.
Created via message_channel. External code pushes messages through the
paired MessageSender; the provider drains them when the agent loop polls.
Trait Implementations§
Source§impl MessageProvider for ChannelMessageProvider
impl MessageProvider for ChannelMessageProvider
Source§fn poll_steering(&self) -> Vec<AgentMessage>
fn poll_steering(&self) -> Vec<AgentMessage>
Return pending steering messages, if any. Read more
Source§fn poll_follow_up(&self) -> Vec<AgentMessage>
fn poll_follow_up(&self) -> Vec<AgentMessage>
Return pending follow-up messages, if any. Read more
Source§fn has_steering(&self) -> bool
fn has_steering(&self) -> bool
Non-draining check for pending steering messages. Read more
Auto Trait Implementations§
impl !Freeze for ChannelMessageProvider
impl RefUnwindSafe for ChannelMessageProvider
impl Send for ChannelMessageProvider
impl Sync for ChannelMessageProvider
impl Unpin for ChannelMessageProvider
impl UnsafeUnpin for ChannelMessageProvider
impl UnwindSafe for ChannelMessageProvider
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