pub struct BotSideBus { /* private fields */ }Expand description
The bot-side port for pushing inbound messages and consuming outbound messages.
Implementations§
Source§impl BotSideBus
impl BotSideBus
Sourcepub async fn push(&self, msg: InboundMessage) -> Result<(), AgentError>
pub async fn push(&self, msg: InboundMessage) -> Result<(), AgentError>
Push an inbound message onto the bus for the agent to consume.
Sourcepub async fn recv_outbound(&mut self) -> Option<OutboundMessage>
pub async fn recv_outbound(&mut self) -> Option<OutboundMessage>
Receive the next outbound message from the agent.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BotSideBus
impl RefUnwindSafe for BotSideBus
impl Send for BotSideBus
impl Sync for BotSideBus
impl Unpin for BotSideBus
impl UnsafeUnpin for BotSideBus
impl UnwindSafe for BotSideBus
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