[][src]Struct sql_support::interrupt::SqlInterruptHandle

pub struct SqlInterruptHandle {
    db_handle: InterruptHandle,
    interrupt_counter: Arc<AtomicUsize>,
}

A Sync+Send type which can be used allow someone to interrupt an operation, even if it happens while rust code (and not SQL) is executing.

Fields

db_handle: InterruptHandleinterrupt_counter: Arc<AtomicUsize>

Implementations

impl SqlInterruptHandle[src]

pub fn new(
    db_handle: InterruptHandle,
    interrupt_counter: Arc<AtomicUsize>
) -> SqlInterruptHandle
[src]

pub fn interrupt(&self)[src]

Trait Implementations

impl IntoFfi for SqlInterruptHandle where
    SqlInterruptHandle: Send
[src]

type Value = *mut SqlInterruptHandle

This type must be: Read more

Auto Trait Implementations

impl RefUnwindSafe for SqlInterruptHandle

impl Send for SqlInterruptHandle

impl Sync for SqlInterruptHandle

impl Unpin for SqlInterruptHandle

impl UnwindSafe for SqlInterruptHandle

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.