Struct actix_postgres::PostgresMessage [−][src]
pub struct PostgresMessage<F, Tls, R> where
Tls: MakeTlsConnect<Socket> + Clone + Send + Sync + 'static + Unpin,
<Tls as MakeTlsConnect<Socket>>::Stream: Send + Sync,
<Tls as MakeTlsConnect<Socket>>::TlsConnect: Send,
<<Tls as MakeTlsConnect<Socket>>::TlsConnect as TlsConnect<Socket>>::Future: Send + Unpin,
F: FnOnce(Pool<PostgresConnectionManager<Tls>>) -> ResponseFuture<Result<R, PostgresError>> + 'static, { /* fields omitted */ }
Expand description
PostgreSQL Message
Implementations
impl<F, Tls, R> PostgresMessage<F, Tls, R> where
Tls: MakeTlsConnect<Socket> + Clone + Send + Sync + 'static + Unpin,
<Tls as MakeTlsConnect<Socket>>::Stream: Send + Sync,
<Tls as MakeTlsConnect<Socket>>::TlsConnect: Send,
<<Tls as MakeTlsConnect<Socket>>::TlsConnect as TlsConnect<Socket>>::Future: Send + Unpin,
F: FnOnce(Pool<PostgresConnectionManager<Tls>>) -> ResponseFuture<Result<R, PostgresError>> + 'static + Send + Sync,
impl<F, Tls, R> PostgresMessage<F, Tls, R> where
Tls: MakeTlsConnect<Socket> + Clone + Send + Sync + 'static + Unpin,
<Tls as MakeTlsConnect<Socket>>::Stream: Send + Sync,
<Tls as MakeTlsConnect<Socket>>::TlsConnect: Send,
<<Tls as MakeTlsConnect<Socket>>::TlsConnect as TlsConnect<Socket>>::Future: Send + Unpin,
F: FnOnce(Pool<PostgresConnectionManager<Tls>>) -> ResponseFuture<Result<R, PostgresError>> + 'static + Send + Sync,
Trait Implementations
impl<F: Debug, Tls: Debug, R: Debug> Debug for PostgresMessage<F, Tls, R> where
Tls: MakeTlsConnect<Socket> + Clone + Send + Sync + 'static + Unpin,
<Tls as MakeTlsConnect<Socket>>::Stream: Send + Sync,
<Tls as MakeTlsConnect<Socket>>::TlsConnect: Send,
<<Tls as MakeTlsConnect<Socket>>::TlsConnect as TlsConnect<Socket>>::Future: Send + Unpin,
F: FnOnce(Pool<PostgresConnectionManager<Tls>>) -> ResponseFuture<Result<R, PostgresError>> + 'static,
impl<F: Debug, Tls: Debug, R: Debug> Debug for PostgresMessage<F, Tls, R> where
Tls: MakeTlsConnect<Socket> + Clone + Send + Sync + 'static + Unpin,
<Tls as MakeTlsConnect<Socket>>::Stream: Send + Sync,
<Tls as MakeTlsConnect<Socket>>::TlsConnect: Send,
<<Tls as MakeTlsConnect<Socket>>::TlsConnect as TlsConnect<Socket>>::Future: Send + Unpin,
F: FnOnce(Pool<PostgresConnectionManager<Tls>>) -> ResponseFuture<Result<R, PostgresError>> + 'static,
impl<F, Tls, R> Handler<PostgresMessage<F, Tls, R>> for PostgresActor<Tls> where
R: 'static + Send,
Tls: MakeTlsConnect<Socket> + Clone + Send + Sync + 'static + Unpin,
<Tls as MakeTlsConnect<Socket>>::Stream: Send + Sync,
<Tls as MakeTlsConnect<Socket>>::TlsConnect: Send,
<<Tls as MakeTlsConnect<Socket>>::TlsConnect as TlsConnect<Socket>>::Future: Send + Unpin,
F: FnOnce(Pool<PostgresConnectionManager<Tls>>) -> ResponseFuture<Result<R, PostgresError>> + 'static + Send + Sync,
impl<F, Tls, R> Handler<PostgresMessage<F, Tls, R>> for PostgresActor<Tls> where
R: 'static + Send,
Tls: MakeTlsConnect<Socket> + Clone + Send + Sync + 'static + Unpin,
<Tls as MakeTlsConnect<Socket>>::Stream: Send + Sync,
<Tls as MakeTlsConnect<Socket>>::TlsConnect: Send,
<<Tls as MakeTlsConnect<Socket>>::TlsConnect as TlsConnect<Socket>>::Future: Send + Unpin,
F: FnOnce(Pool<PostgresConnectionManager<Tls>>) -> ResponseFuture<Result<R, PostgresError>> + 'static + Send + Sync,
type Result = ResponseFuture<Result<R, PostgresError>>
type Result = ResponseFuture<Result<R, PostgresError>>
The type of value that this handler will return. Read more
fn handle(
&mut self,
msg: PostgresMessage<F, Tls, R>,
_ctx: &mut Self::Context
) -> Self::Result
fn handle(
&mut self,
msg: PostgresMessage<F, Tls, R>,
_ctx: &mut Self::Context
) -> Self::Result
This method is called for every message received by this actor.
impl<F, Tls, R> Message for PostgresMessage<F, Tls, R> where
R: 'static,
Tls: MakeTlsConnect<Socket> + Clone + Send + Sync + 'static + Unpin,
<Tls as MakeTlsConnect<Socket>>::Stream: Send + Sync,
<Tls as MakeTlsConnect<Socket>>::TlsConnect: Send,
<<Tls as MakeTlsConnect<Socket>>::TlsConnect as TlsConnect<Socket>>::Future: Send + Unpin,
F: FnOnce(Pool<PostgresConnectionManager<Tls>>) -> ResponseFuture<Result<R, PostgresError>> + 'static + Send + Sync,
impl<F, Tls, R> Message for PostgresMessage<F, Tls, R> where
R: 'static,
Tls: MakeTlsConnect<Socket> + Clone + Send + Sync + 'static + Unpin,
<Tls as MakeTlsConnect<Socket>>::Stream: Send + Sync,
<Tls as MakeTlsConnect<Socket>>::TlsConnect: Send,
<<Tls as MakeTlsConnect<Socket>>::TlsConnect as TlsConnect<Socket>>::Future: Send + Unpin,
F: FnOnce(Pool<PostgresConnectionManager<Tls>>) -> ResponseFuture<Result<R, PostgresError>> + 'static + Send + Sync,
type Result = Result<R, PostgresError>
type Result = Result<R, PostgresError>
The type of value that this message will resolved with if it is successful. Read more
Auto Trait Implementations
impl<F, Tls, R> RefUnwindSafe for PostgresMessage<F, Tls, R> where
F: RefUnwindSafe,
Tls: RefUnwindSafe,
impl<F, Tls, R> Send for PostgresMessage<F, Tls, R> where
F: Send,
impl<F, Tls, R> Sync for PostgresMessage<F, Tls, R> where
F: Sync,
impl<F, Tls, R> Unpin for PostgresMessage<F, Tls, R> where
F: Unpin,
impl<F, Tls, R> UnwindSafe for PostgresMessage<F, Tls, R> where
F: UnwindSafe,
Tls: UnwindSafe,