pub struct RunnerAsync<C: GenericClient = Client> { /* private fields */ }Implementations§
Source§impl<C> RunnerAsync<C>where
C: GenericClient,
impl<C> RunnerAsync<C>where
C: GenericClient,
pub fn new(client: C) -> Self
pub fn into_inner(self) -> C
Source§impl RunnerAsync<Client>
impl RunnerAsync<Client>
Sourcepub async fn connect_no_tls(config: &str) -> Result<Self, Error>
pub async fn connect_no_tls(config: &str) -> Result<Self, Error>
Helper for tokio_postgres::connect and RunnerAsync::new.
Trait Implementations§
Source§impl<C> Run for RunnerAsync<C>where
C: GenericClient,
Available on crate feature tokio-postgres only.
impl<C> Run for RunnerAsync<C>where
C: GenericClient,
Available on crate feature
tokio-postgres only.type Error = Error
type Prepared = PreparedProgram
Source§async fn prepare(&self, program: Program) -> Result<Self::Prepared, Self::Error>
async fn prepare(&self, program: Program) -> Result<Self::Prepared, Self::Error>
Prepares a program for execution and returns a handle, which can be
used with Run::execute. Read more
Source§async fn execute(
&self,
handle: &Self::Prepared,
input: &[u8],
) -> Result<Vec<u8>, Self::Error>
async fn execute( &self, handle: &Self::Prepared, input: &[u8], ) -> Result<Vec<u8>, Self::Error>
Execute a prepared program.
Program’s format must match the format supported by this runner.
Source§async fn get_interface(&self) -> Result<String, Self::Error>
async fn get_interface(&self) -> Result<String, Self::Error>
Return static interface of this runner as Lutra source code. Read more
Auto Trait Implementations§
impl<C> Freeze for RunnerAsync<C>where
C: Freeze,
impl<C> RefUnwindSafe for RunnerAsync<C>where
C: RefUnwindSafe,
impl<C> Send for RunnerAsync<C>where
C: Send,
impl<C> Sync for RunnerAsync<C>where
C: Sync,
impl<C> Unpin for RunnerAsync<C>where
C: Unpin,
impl<C> UnsafeUnpin for RunnerAsync<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for RunnerAsync<C>where
C: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more