pub trait AcquireConnection {
// Required method
async fn acquire_connection(
&self,
) -> Option<impl 'static + AsRef<Connection>>;
}Expand description
Types that may be provided to subscribe_blocks to provide access to
Connections while streaming.
Required Methods§
sourceasync fn acquire_connection(&self) -> Option<impl 'static + AsRef<Connection>>
async fn acquire_connection(&self) -> Option<impl 'static + AsRef<Connection>>
Asynchronously acquire a handle to a Connection.
Returns Some in the case a connection could be acquired, or None in
the case that the connection source is no longer available.
Object Safety§
This trait is not object safe.