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

Options for subscription

Implementations

Creates a new set of default subscription options

Binds to an existing consumer from a stream without attempting to create one.

Creates an ordered fifo (first-in-first-out) subscription.

Binds the consumer to a stream explicitly based on a name.

When a stream name is not specified, the subject is used as a way to find the stream name. This is done by making a request to the server to get list of stream names that have a filter the subject. To avoid the stream lookup, provide the stream name with this function.

Sets the description used for the created consumer.

Sets the durable name for the created consumer.

Configures the consumer to receive all the messages from a Stream.

Configures the consumer to receive messages starting with the latest one.

Configures the consumer to receive messages starting with the latest one for each filtered subject.

Configures the consumer to receive messages published after the subscription.

Configures a Consumer to receive messages from a start sequence.

Configures the consumer to receive messages from a start time.

Require no acks for delivered messages.

When acking a sequence number, this implicitly acks all sequences below this one as well.

Requires ack or nack for all messages.

Sets the number of redeliveries for a message.

Sets the number of outstanding acks that are allowed before message delivery is halted.

Replays the messages at the original speed.

Replays the messages as fast as possible.

The bits per second rate limit applied to the push consumer.

Specifies the consumer deliver subject.

This option is used only in situations where the consumer does not exist and a creation request is sent to the server.

If not provided, an inbox will be selected.

Instruct the consumer to only deliver headers and no payloads.

Enables flow control

Enables hearbeat messages to be sent.

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

Returns the “default value” for a type. 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.

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.