pub struct PendingClient { /* private fields */ }
Expand description

A client that has started connecting, but might not have finished connecting.

When creating a client, a new thread is spawned for the client connection cycle. When the client is done being created, it will send it back through this pending client.

Implementations

Returns whether the client is finished connecting.

Takes the io::Result<Client> from the PendingClient. This will yield a value if done() returned true.

Panics

Panics if the generic parameter R isn’t the response message type (the same R that you passed into MsgTable::build).

Blocks until the client is ready.

Panics

Panics if the generic parameter R isn’t the response message type (the same R that you passed into MsgTable::build).

Converts this into a OptionPendingClient.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Converts this type into the (usually inferred) input type.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. 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.