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§
Sourcetype Connection: Send + Sync
type Connection: Send + Sync
The adapter’s shared connection or pool.
Sourcetype Transaction: Send + Sync
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".