Struct coord::Client [−][src]
pub struct Client {
cmd_tx: UnboundedSender<Command>,
id_alloc: Arc<IdAllocator>,
}
Expand description
A coordinator client.
A coordinator client is a simple handle to a communication channel with the coordinator. It can be cheaply cloned.
Clients keep the coordinator alive. The coordinator will not exit until all outstanding clients have dropped.
Fields
cmd_tx: UnboundedSender<Command>
id_alloc: Arc<IdAllocator>
Implementations
Allocates a client for an incoming connection.
Executes SQL statements, as if by SessionClient::simple_execute
, as
a system user.
Like Client::system_execute
, but for cases when stmt
is known to
contain just one statement.
Panics
Panics if stmt
parses to more than one SQL statement.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
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