Struct PostgresMessage

Source
pub struct PostgresMessage<F, Tls, R>{ /* private fields */ }
Expand description

PostgreSQL Message

Implementations§

Source§

impl<F, Tls, R> PostgresMessage<F, Tls, R>

Source

pub fn new(query: F) -> Self

Trait Implementations§

Source§

impl<F, Tls, R: Debug> Debug for PostgresMessage<F, Tls, R>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<F, Tls, R> Handler<PostgresMessage<F, Tls, R>> for PostgresActor<Tls>

Source§

type Result = Pin<Box<dyn Future<Output = Result<R, PostgresError>>>>

The type of value that this handler will return. Read more
Source§

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.
Source§

impl<F, Tls, R> Message for PostgresMessage<F, Tls, R>

Source§

type Result = Result<R, PostgresError>

The type of value that this message will resolved with if it is successful.

Auto Trait Implementations§

§

impl<F, Tls, R> Freeze for PostgresMessage<F, Tls, R>
where F: Freeze,

§

impl<F, Tls, R> RefUnwindSafe for PostgresMessage<F, Tls, R>

§

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§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V