Prepare

Trait Prepare 

Source
pub trait Prepare: Query + Sync {
    // Required methods
    fn _get_type(
        &self,
        oid: Oid,
    ) -> impl Future<Output = Result<Type, Error>> + Send;
    fn _get_type_blocking(&self, oid: Oid) -> Result<Type, Error>;
}
Expand description

trait generic over preparing statement and canceling of prepared statement

Required Methods§

Source

fn _get_type( &self, oid: Oid, ) -> impl Future<Output = Result<Type, Error>> + Send

Source

fn _get_type_blocking(&self, oid: Oid) -> Result<Type, Error>

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.

Implementations on Foreign Types§

Source§

impl Prepare for Arc<Client>

Source§

async fn _get_type(&self, oid: Oid) -> Result<Type, Error>

Source§

fn _get_type_blocking(&self, oid: Oid) -> Result<Type, Error>

Source§

impl<T> Prepare for &T
where T: Prepare,

Source§

async fn _get_type(&self, oid: Oid) -> Result<Type, Error>

Source§

fn _get_type_blocking(&self, oid: Oid) -> Result<Type, Error>

Source§

impl<T> Prepare for &mut T
where T: Prepare,

Source§

async fn _get_type(&self, oid: Oid) -> Result<Type, Error>

Source§

fn _get_type_blocking(&self, oid: Oid) -> Result<Type, Error>

Implementors§