pub struct AgentChannels {
pub event_tx: Sender<AgentEvent>,
pub message_rx: Receiver<FrontendMessage>,
}Expand description
Channel pair for Agent <-> Frontend communication.
The Agent holds event_tx (to send events) and message_rx (to receive user messages).
The Frontend holds the other ends.
Fields§
§event_tx: Sender<AgentEvent>Agent uses this to send events to the Frontend.
message_rx: Receiver<FrontendMessage>Agent uses this to receive messages from the Frontend.
Auto Trait Implementations§
impl Freeze for AgentChannels
impl RefUnwindSafe for AgentChannels
impl Send for AgentChannels
impl Sync for AgentChannels
impl Unpin for AgentChannels
impl UnsafeUnpin for AgentChannels
impl UnwindSafe for AgentChannels
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