pub struct QueryCancelled {
pub reason: CancellationReason,
}Expand description
Raised when a statement is canceled; its Display payload is the message PostgreSQL reports for the reason.
Fields§
§reason: CancellationReasonImplementations§
Source§impl QueryCancelled
impl QueryCancelled
Sourcepub const USER_REQUEST: Self
pub const USER_REQUEST: Self
A cancellation a client requested.
pub const fn new(reason: CancellationReason) -> Self
pub const fn sqlstate(&self) -> &'static str
Trait Implementations§
Source§impl Clone for QueryCancelled
impl Clone for QueryCancelled
impl Copy for QueryCancelled
Source§impl Debug for QueryCancelled
impl Debug for QueryCancelled
Source§impl Default for QueryCancelled
impl Default for QueryCancelled
Source§impl Display for QueryCancelled
impl Display for QueryCancelled
impl Eq for QueryCancelled
Source§impl Error for QueryCancelled
impl Error for QueryCancelled
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<QueryCancelled> for JsonReadError
impl From<QueryCancelled> for JsonReadError
Source§fn from(source: QueryCancelled) -> Self
fn from(source: QueryCancelled) -> Self
Converts to this type from the input type.
Source§impl From<QueryCancelled> for ArrayTraversalError
impl From<QueryCancelled> for ArrayTraversalError
Source§fn from(source: QueryCancelled) -> Self
fn from(source: QueryCancelled) -> Self
Converts to this type from the input type.
Source§impl From<QueryCancelled> for JsonbKeyError
impl From<QueryCancelled> for JsonbKeyError
Source§fn from(source: QueryCancelled) -> Self
fn from(source: QueryCancelled) -> Self
Converts to this type from the input type.
Source§impl From<QueryCancelled> for ValueRetentionError
impl From<QueryCancelled> for ValueRetentionError
Source§fn from(source: QueryCancelled) -> Self
fn from(source: QueryCancelled) -> Self
Converts to this type from the input type.
Source§impl PartialEq for QueryCancelled
impl PartialEq for QueryCancelled
impl StructuralPartialEq for QueryCancelled
Auto Trait Implementations§
impl Freeze for QueryCancelled
impl RefUnwindSafe for QueryCancelled
impl Send for QueryCancelled
impl Sync for QueryCancelled
impl Unpin for QueryCancelled
impl UnsafeUnpin for QueryCancelled
impl UnwindSafe for QueryCancelled
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