Skip to main content

HookBackend

Trait HookBackend 

Source
pub trait HookBackend:
    Send
    + Sync
    + 'static {
    type Connection: Send + Sync;
    type Transaction: Send + Sync;
}
Expand description

Database handles an adapter exposes to its lifecycle hooks.

Required Associated Types§

Source

type Connection: Send + Sync

The adapter’s shared connection or pool.

Source

type Transaction: Send + Sync

The adapter’s active auth transaction.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§