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

Connects to a QuestDB instance and inserts data via the ILP protocol.

  • To construct an instance, use the SenderBuilder.
  • To prepare messages, use Buffer objects.
  • To send messages, call the flush method.

Implementations

Send buffer to the QuestDB server, without clearing the buffer.

This will block until the buffer is flushed to the network socket. This does not guarantee that the buffer will be sent to the server or that the server has received it.

Send buffer to the QuestDB server, clearing the buffer.

This will block until the buffer is flushed to the network socket. This does not guarantee that the buffer will be sent to the server or that the server has received it.

The sender is no longer usable and must be dropped.

This is caused if there was an earlier failure.

Trait Implementations

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

Returns the argument unchanged.

Calls U::from(self).

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

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.