pub enum CancelError<ConnectorError> {
Connector(ConnectorError),
Protocol(Error),
}Expand description
Failure while sending a one-shot PostgreSQL cancellation packet.
Variants§
Connector(ConnectorError)
The configured connector could not open the cancellation transport.
Protocol(Error)
The key could not be encoded or the raw packet could not be written.
Trait Implementations§
Source§impl<ConnectorError: Debug> Debug for CancelError<ConnectorError>
impl<ConnectorError: Debug> Debug for CancelError<ConnectorError>
Source§impl<E: Display> Display for CancelError<E>
impl<E: Display> Display for CancelError<E>
Source§impl<E: Error + 'static> Error for CancelError<E>
impl<E: Error + 'static> Error for CancelError<E>
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()
Auto Trait Implementations§
impl<ConnectorError> !RefUnwindSafe for CancelError<ConnectorError>
impl<ConnectorError> !UnwindSafe for CancelError<ConnectorError>
impl<ConnectorError> Freeze for CancelError<ConnectorError>where
ConnectorError: Freeze,
impl<ConnectorError> Send for CancelError<ConnectorError>where
ConnectorError: Send,
impl<ConnectorError> Sync for CancelError<ConnectorError>where
ConnectorError: Sync,
impl<ConnectorError> Unpin for CancelError<ConnectorError>where
ConnectorError: Unpin,
impl<ConnectorError> UnsafeUnpin for CancelError<ConnectorError>where
ConnectorError: UnsafeUnpin,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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