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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Upcasts this ProgressEventTimestamp to Any. Read more

Returns the name of the concrete type of this object. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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