pub struct InstanceState<C> { /* private fields */ }
Trait Implementations§
Source§impl<C: Send> Host for InstanceState<C>
impl<C: Send> Host for InstanceState<C>
fn convert_error(&mut self, error: Error) -> Result<Error>
Source§impl<C: Send + Sync + Client> Host for InstanceState<C>
impl<C: Send + Sync + Client> Host for InstanceState<C>
fn convert_error(&mut self, error: Error) -> Result<Error>
Source§impl<C: Send + Sync + Client> Host for InstanceState<C>
impl<C: Send + Sync + Client> Host for InstanceState<C>
Source§fn execute<'life0, 'async_trait>(
&'life0 mut self,
address: String,
statement: String,
params: Vec<ParameterValue>,
) -> Pin<Box<dyn Future<Output = Result<u64, PgError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 mut self,
address: String,
statement: String,
params: Vec<ParameterValue>,
) -> Pin<Box<dyn Future<Output = Result<u64, PgError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
execute command to the database: insert, update, delete
Source§fn query<'life0, 'async_trait>(
&'life0 mut self,
address: String,
statement: String,
params: Vec<ParameterValue>,
) -> Pin<Box<dyn Future<Output = Result<RowSet, PgError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn query<'life0, 'async_trait>(
&'life0 mut self,
address: String,
statement: String,
params: Vec<ParameterValue>,
) -> Pin<Box<dyn Future<Output = Result<RowSet, PgError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
query the database: select
fn convert_pg_error(&mut self, error: PgError) -> Result<PgError>
Source§impl<C: Send + Sync + Client> HostConnection for InstanceState<C>
impl<C: Send + Sync + Client> HostConnection for InstanceState<C>
Source§fn open<'life0, 'async_trait>(
&'life0 mut self,
address: String,
) -> Pin<Box<dyn Future<Output = Result<Resource<Connection>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn open<'life0, 'async_trait>(
&'life0 mut self,
address: String,
) -> Pin<Box<dyn Future<Output = Result<Resource<Connection>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Open a connection to the Postgres instance at
address
.Source§fn execute<'life0, 'async_trait>(
&'life0 mut self,
connection: Resource<Connection>,
statement: String,
params: Vec<ParameterValue>,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 mut self,
connection: Resource<Connection>,
statement: String,
params: Vec<ParameterValue>,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute command to the database.
Source§fn query<'life0, 'async_trait>(
&'life0 mut self,
connection: Resource<Connection>,
statement: String,
params: Vec<ParameterValue>,
) -> Pin<Box<dyn Future<Output = Result<RowSet, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn query<'life0, 'async_trait>(
&'life0 mut self,
connection: Resource<Connection>,
statement: String,
params: Vec<ParameterValue>,
) -> Pin<Box<dyn Future<Output = Result<RowSet, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Query the database.
fn drop<'life0, 'async_trait>(
&'life0 mut self,
connection: Resource<Connection>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl<C: Send + Sync + Client> HostConnection for InstanceState<C>
impl<C: Send + Sync + Client> HostConnection for InstanceState<C>
Source§fn open<'life0, 'async_trait>(
&'life0 mut self,
address: String,
) -> Pin<Box<dyn Future<Output = Result<Resource<Connection>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn open<'life0, 'async_trait>(
&'life0 mut self,
address: String,
) -> Pin<Box<dyn Future<Output = Result<Resource<Connection>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Open a connection to the Postgres instance at
address
.Source§fn execute<'life0, 'async_trait>(
&'life0 mut self,
connection: Resource<Connection>,
statement: String,
params: Vec<ParameterValue>,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 mut self,
connection: Resource<Connection>,
statement: String,
params: Vec<ParameterValue>,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute command to the database.
Source§fn query<'life0, 'async_trait>(
&'life0 mut self,
connection: Resource<Connection>,
statement: String,
params: Vec<ParameterValue>,
) -> Pin<Box<dyn Future<Output = Result<RowSet, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn query<'life0, 'async_trait>(
&'life0 mut self,
connection: Resource<Connection>,
statement: String,
params: Vec<ParameterValue>,
) -> Pin<Box<dyn Future<Output = Result<RowSet, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Query the database.
fn drop<'life0, 'async_trait>(
&'life0 mut self,
connection: Resource<Connection>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
impl<C: Send + Sync + Client> Host for InstanceState<C>
impl<C: Send + 'static> SelfInstanceBuilder for InstanceState<C>
Auto Trait Implementations§
impl<C> Freeze for InstanceState<C>
impl<C> !RefUnwindSafe for InstanceState<C>
impl<C> Send for InstanceState<C>where
C: Send,
impl<C> Sync for InstanceState<C>where
C: Sync,
impl<C> Unpin for InstanceState<C>where
C: Unpin,
impl<C> !UnwindSafe for InstanceState<C>
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
§impl<T> FactorInstanceBuilder for Twhere
T: SelfInstanceBuilder,
impl<T> FactorInstanceBuilder for Twhere
T: SelfInstanceBuilder,
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self
file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more