pub struct InterruptHandle { /* private fields */ }Expand description
A handle that allows interrupting long-running queries.
Implementations§
Source§impl InterruptHandle
impl InterruptHandle
Sourcepub fn interrupt(&self)
pub fn interrupt(&self)
Interrupt the query currently running on the connection this handle was
obtained from. The interrupt will cause that query to fail with
Error::DuckDBFailure. If the connection was dropped after obtaining
this interrupt handle, calling this method results in a noop.
See crate::Connection::interrupt_handle for an example.
Trait Implementations§
impl Send for InterruptHandle
impl Sync for InterruptHandle
Auto Trait Implementations§
impl !Freeze for InterruptHandle
impl RefUnwindSafe for InterruptHandle
impl Unpin for InterruptHandle
impl UnwindSafe for InterruptHandle
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