pub enum ValidationDepth {
Local,
Remote,
}
Expand description
Constants indicating validation depth for a Connection.
Variants§
Local
Perform a client-side only validation. Typically to determine whether a connection is still active or other mechanism that does not involve remote communication.
Remote
Perform a remote connection validations. Typically by sending a database message or some other mechanism to validate that the database connection and session are active and can be used for database queries. Any query submitted by the driver to validate the connection is executed in the context of the current transaction.
Auto Trait Implementations§
impl Freeze for ValidationDepth
impl RefUnwindSafe for ValidationDepth
impl Send for ValidationDepth
impl Sync for ValidationDepth
impl Unpin for ValidationDepth
impl UnwindSafe for ValidationDepth
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