pub struct QueuedServerReply<T> { /* private fields */ }
Expand description

Represents a reply where all sends are queued up but not sent until after the flush method is called. This reply supports injecting at the front of the queue in order to support sending messages but ensuring that some specific message is sent out first

Implementations

Updates the hold status for the queue

  • If true, all messages are held until the queue is flushed
  • If false, messages are sent directly as they come in

Send this message, adding it to a queue if holding messages

Send this message, adding it to a queue if holding messages, blocking for access to locks and other internals

Send this message before anything else in the queue

Sends all pending msgs queued up and clears the queue

Additionally, takes hold to indicate whether or not new msgs after the flush should continue to be held within the queue or if all future msgs will be sent immediately

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Sends a reply out from the server

Blocking version of sending a reply out from the server

Clones this reply

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.

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

Calls U::from(self).

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

Should always be Self

The resulting type after obtaining ownership.

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

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