Struct coord::ConnClient [−][src]
Expand description
A coordinator client that is bound to a connection.
The ConnClient
automatically allocates an ID for the connection when
it is created, and frees that ID for potential reuse when it is dropped.
See also Client
.
Fields
conn_id: u32
inner: Client
Implementations
pub async fn startup(
self,
session: Session
) -> Result<(SessionClient, StartupResponse), CoordError>
pub async fn startup(
self,
session: Session
) -> Result<(SessionClient, StartupResponse), CoordError>
Upgrades this connection client to a session client.
A session is a connection that has successfully negotiated parameters, like the user. Most coordinator operations are available only after upgrading a connection to a session.
Returns a new client that is bound to the session and a response containing various details about the startup.
Cancels the query currently running on another connection.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ConnClient
impl Send for ConnClient
impl Sync for ConnClient
impl Unpin for ConnClient
impl !UnwindSafe for ConnClient
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more