pub struct QueryResultWithCLI {
pub handle: QueryHandle,
pub stream: MessageStream,
pub cancel_token: CancellationToken,
}Expand description
Query result containing session handle and message stream (with CLI process)
Fields§
§handle: QueryHandle§stream: MessageStream§cancel_token: CancellationTokenImplementations§
Source§impl QueryResultWithCLI
impl QueryResultWithCLI
Sourcepub fn handle(&self) -> &QueryHandle
pub fn handle(&self) -> &QueryHandle
Get the session handle
Sourcepub fn stream(&self) -> &MessageStream
pub fn stream(&self) -> &MessageStream
Get the message stream
Sourcepub async fn next_message(&self) -> Option<Result<SDKMessage>>
pub async fn next_message(&self) -> Option<Result<SDKMessage>>
Get the next message from the stream
Auto Trait Implementations§
impl Freeze for QueryResultWithCLI
impl RefUnwindSafe for QueryResultWithCLI
impl Send for QueryResultWithCLI
impl Sync for QueryResultWithCLI
impl !Unpin for QueryResultWithCLI
impl !UnsafeUnpin for QueryResultWithCLI
impl UnwindSafe for QueryResultWithCLI
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