pub struct AgentStream<T>where
T: AgentTransport,{ /* private fields */ }Expand description
A protocol stream opened with a session-start message.
The stream owns a correlation ID and a shared transport handle. It is not
used by the current AgentClient routing path.
Implementations§
Source§impl<T> AgentStream<T>where
T: AgentTransport,
impl<T> AgentStream<T>where
T: AgentTransport,
Sourcepub async fn send<M>(&self, message: M) -> AgentClientResult<()>where
M: IntoOutboundMessage,
pub async fn send<M>(&self, message: M) -> AgentClientResult<()>where
M: IntoOutboundMessage,
Send a follow-up message on the stream.
This scaffold is intentionally not wired to a routing implementation yet.
Use AgentClient::send for active streams
opened with AgentClient::stream.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for AgentStream<T>
impl<T> !UnwindSafe for AgentStream<T>
impl<T> Freeze for AgentStream<T>
impl<T> Send for AgentStream<T>
impl<T> Sync for AgentStream<T>
impl<T> Unpin for AgentStream<T>
impl<T> UnsafeUnpin for AgentStream<T>
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