pub struct CancelToken { /* private fields */ }Expand description
A token that cancels the query currently running on a connection.
Cancelling opens a short-lived TLS connection to the server and sends a
CancelRequest, exactly like PQcancel. It is a no-op if the query has
already finished. If the server never sent BackendKeyData during startup
(some non-PostgreSQL gateways), the token carries a zero key and the request
has no effect.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CancelToken
impl RefUnwindSafe for CancelToken
impl Send for CancelToken
impl Sync for CancelToken
impl Unpin for CancelToken
impl UnsafeUnpin for CancelToken
impl UnwindSafe for CancelToken
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