pub struct SqlInterruptScope { /* private fields */ }
Expand description
Check if an operation has been interrupted
This is used by the rust code to check if an operation should fail because it was interrupted. It handles the case where we get interrupted outside of an SQL query.
Implementations§
source§impl SqlInterruptScope
impl SqlInterruptScope
pub fn dummy() -> Self
sourcepub fn was_interrupted(&self) -> bool
pub fn was_interrupted(&self) -> bool
Check if scope has been interrupted
sourcepub fn err_if_interrupted(&self) -> Result<(), Interrupted>
pub fn err_if_interrupted(&self) -> Result<(), Interrupted>
Return Err(Interrupted) if we were interrupted
Trait Implementations§
source§impl Debug for SqlInterruptScope
impl Debug for SqlInterruptScope
source§impl Interruptee for SqlInterruptScope
impl Interruptee for SqlInterruptScope
fn was_interrupted(&self) -> bool
fn err_if_interrupted(&self) -> Result<(), Interrupted>
Auto Trait Implementations§
impl Freeze for SqlInterruptScope
impl RefUnwindSafe for SqlInterruptScope
impl Send for SqlInterruptScope
impl Sync for SqlInterruptScope
impl Unpin for SqlInterruptScope
impl UnwindSafe for SqlInterruptScope
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