Struct hedwig::mock::MockAckToken[][src]

pub struct MockAckToken { /* fields omitted */ }
This is supported on test or crate feature mock only.
Expand description

An acknowledge token associated with a particular message from a MockConsumer.

When nack is called for a particular message’s token, that message will be re-submitted to consumers of the corresponding subscription. Messages otherwise do not have any timeout behavior, so a message is only re-sent to consumers if it is explicitly nack’ed; ack and modify_deadline have no effect

Trait Implementations

Errors returned by ack

Errors returned by nack

Errors returned by modify_deadline

Acknowledge the associated message

Negatively acknowledge the associated message

Change the associated message’s acknowledge deadline to the given number of seconds

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.

Wrap the input message T in a tonic::Request

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