Struct coord::SessionClient [−][src]
A coordinator client that is bound to a connection.
You must call SessionClient::terminate
rather than dropping a session
client directly. Dropping an unterminated SessionClient
will panic.
See also Client
.
Implementations
impl SessionClient
[src]
pub fn canceled(&self) -> impl Future<Output = ()> + Send
[src]
pub fn reset_canceled(&mut self)
[src]
pub async fn describe(
&mut self,
name: String,
stmt: Option<Statement<Raw>>,
param_types: Vec<Option<Type>>
) -> Result<(), CoordError>
[src]
&mut self,
name: String,
stmt: Option<Statement<Raw>>,
param_types: Vec<Option<Type>>
) -> Result<(), CoordError>
Saves the specified statement as a prepared statement.
The prepared statement is saved in the connection's [sql::Session
]
under the specified name.
pub async fn declare(
&mut self,
name: String,
stmt: Statement<Raw>,
param_types: Vec<Option<Type>>
) -> Result<(), CoordError>
[src]
&mut self,
name: String,
stmt: Statement<Raw>,
param_types: Vec<Option<Type>>
) -> Result<(), CoordError>
Binds a statement to a portal.
pub async fn execute(
&mut self,
portal_name: String
) -> Result<ExecuteResponse, CoordError>
[src]
&mut self,
portal_name: String
) -> Result<ExecuteResponse, CoordError>
Executes a previously-bound portal.
pub async fn end_transaction(
&mut self,
action: EndTransactionAction
) -> Result<ExecuteResponse, CoordError>
[src]
&mut self,
action: EndTransactionAction
) -> Result<ExecuteResponse, CoordError>
Ends a transaction.
pub async fn dump_catalog(&mut self) -> Result<String, CoordError>
[src]
Dumps the catalog to a JSON string.
pub async fn terminate(self)
[src]
Terminates this client session.
This method cleans up any coordinator state associated with the session before consuming the `SessionClient. Call this method instead of dropping the object directly.
pub fn session(&mut self) -> &mut Session
[src]
Returns a mutable reference to the session bound to this client.
Trait Implementations
impl Drop for SessionClient
[src]
Auto Trait Implementations
impl !RefUnwindSafe for SessionClient
[src]
impl Send for SessionClient
[src]
impl !Sync for SessionClient
[src]
impl Unpin for SessionClient
[src]
impl !UnwindSafe for SessionClient
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,