[][src]Struct actix_postgres::PostgresMessage

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 */ }

PostgreSQL Message

Methods

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
[src]

pub fn new(query: F) -> Self[src]

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, 
[src]

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
[src]

type Result = ResponseFuture<Result<R, PostgresError>>

The type of value that this handler will return.

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
[src]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,