pub trait AcquireConnection {
// Required method
async fn acquire_connection(
&self,
) -> Option<impl 'static + AsMut<Connection>>;
}
Expand description
Types that may be provided to subscribe_blocks
to provide access to
Connection
s while streaming.
Required Methods§
Sourceasync fn acquire_connection(&self) -> Option<impl 'static + AsMut<Connection>>
async fn acquire_connection(&self) -> Option<impl 'static + AsMut<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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.