pub struct CancelToken(_);
The capability to request cancellation of in-progress queries on aconnection.
implCancelToken
[src]pub fncancel_query<T>(&self, tls: T) ->Result<(),Error>where
T:MakeTlsConnect<Socket>,
[src]Attempts to cancel the in-progress query on the connection associatedwith thisCancelToken
.
The server provides no information about whether a cancellation attempt was successful or not. An error willonly be returned if the client was unable to connect to the database.
Cancellation is inherently racy. There is no guarantee that thecancellation request will reach the server before the query terminatesnormally, or that the connection associated with this token is stillactive.
implClone forCancelToken
[src]fnclone(&self) ->CancelToken
[src]fnclone_from(&mut self, source:&Self)
1.0.0[src]implRefUnwindSafe forCancelToken
implSend forCancelToken
implSync forCancelToken
implUnpin forCancelToken
implUnwindSafe forCancelToken
impl<T>Any for Twhere
T: 'static + ?Sized,
[src]impl<T>Borrow<T> for Twhere
T: ?Sized,
[src]impl<T>BorrowMut<T> for Twhere
T: ?Sized,
[src]fnborrow_mut(&mut self) ->&mutT
[src]impl<T>From<T> for T
[src]impl<T, U>Into<U> for Twhere
U:From<T>,
[src]impl<T> Same<T> for T
typeOutput = T
Should always beSelf
impl<T>ToOwned for Twhere
T:Clone,
[src]typeOwned = T
The resulting type after obtaining ownership.
fnto_owned(&self) -> T
[src]fnclone_into(&self, target:&mutT)
[src]impl<T, U>TryFrom<U> for Twhere
U:Into<T>,
[src]typeError =Infallible
The type returned in the event of a conversion error.
fntry_from(value: U) ->Result<T, <T asTryFrom<U>>::Error>
[src]impl<T, U>TryInto<U> for Twhere
U:TryFrom<T>,
[src]typeError = <U asTryFrom<T>>::Error
The type returned in the event of a conversion error.
fntry_into(self) ->Result<U, <U asTryFrom<T>>::Error>
[src]impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fnvzip(self) -> V