pub struct QueryHandle { /* private fields */ }Expand description
Handle for an active query session
Implementations§
Source§impl QueryHandle
impl QueryHandle
Sourcepub fn session_id(&self) -> &str
pub fn session_id(&self) -> &str
Get the session ID
Sourcepub fn cancellation_token(&self) -> CancellationToken
pub fn cancellation_token(&self) -> CancellationToken
Get the cancellation token
Sourcepub async fn set_permission_mode(&self, _mode: PermissionMode) -> Result<()>
pub async fn set_permission_mode(&self, _mode: PermissionMode) -> Result<()>
Set the permission mode (would update the running CLI process)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueryHandle
impl RefUnwindSafe for QueryHandle
impl Send for QueryHandle
impl Sync for QueryHandle
impl Unpin for QueryHandle
impl UnsafeUnpin for QueryHandle
impl UnwindSafe for QueryHandle
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