pub trait AnySocketExecutor:
AnyExt
+ Serialize
+ Deserialize {
// Required method
fn execute<'life0, 'async_trait>(
&'life0 self,
handshake_cx: HandshakeCx,
websocket: HyperWebsocket,
db_conns: DbConns,
) -> Pin<Box<dyn Future<Output = Result<(), Infallible>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Generic methods trait to handle requests to the endpoints.
Required Methods§
Sourcefn execute<'life0, 'async_trait>(
&'life0 self,
handshake_cx: HandshakeCx,
websocket: HyperWebsocket,
db_conns: DbConns,
) -> Pin<Box<dyn Future<Output = Result<(), Infallible>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
handshake_cx: HandshakeCx,
websocket: HyperWebsocket,
db_conns: DbConns,
) -> Pin<Box<dyn Future<Output = Result<(), Infallible>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Executes a query using the given executor and database connection.
Trait Implementations§
Source§impl<'typetag> Serialize for dyn AnySocketExecutor + 'typetag
impl<'typetag> Serialize for dyn AnySocketExecutor + 'typetag
Source§impl<'typetag> Serialize for dyn AnySocketExecutor + Send + 'typetag
impl<'typetag> Serialize for dyn AnySocketExecutor + Send + 'typetag
Source§impl<'typetag> Serialize for dyn AnySocketExecutor + Sync + 'typetag
impl<'typetag> Serialize for dyn AnySocketExecutor + Sync + 'typetag
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".