Struct async_nats::jetstream::consumer::push::OrderedConfig
source · [−]pub struct OrderedConfig {
pub deliver_subject: String,
pub description: Option<String>,
pub filter_subject: String,
pub replay_policy: ReplayPolicy,
pub rate_limit: u64,
pub sample_frequency: u8,
pub headers_only: bool,
pub deliver_policy: DeliverPolicy,
pub max_waiting: i64,
pub num_replicas: usize,
}Expand description
Configuration for consumers. From a high level, the
durable_name and deliver_subject fields have a particularly
strong influence on the consumer’s overall behavior.
Fields
deliver_subject: StringThe delivery subject used by the push consumer.
description: Option<String>A short description of the purpose of this consumer.
filter_subject: Stringreplay_policy: ReplayPolicyWhether messages are sent as quickly as possible or at the rate of receipt
rate_limit: u64The rate of message delivery in bits per second
sample_frequency: u8What percentage of acknowledgements should be samples for observability, 0-100
headers_only: boolOnly deliver headers without payloads.
deliver_policy: DeliverPolicyAllows for a variety of options that determine how this consumer will receive messages
max_waiting: i64The maximum number of waiting consumers.
num_replicas: usizeNumber of consumer replucas
Trait Implementations
sourceimpl Clone for OrderedConfig
impl Clone for OrderedConfig
sourcefn clone(&self) -> OrderedConfig
fn clone(&self) -> OrderedConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for OrderedConfig
impl Debug for OrderedConfig
sourceimpl Default for OrderedConfig
impl Default for OrderedConfig
sourcefn default() -> OrderedConfig
fn default() -> OrderedConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for OrderedConfig
impl<'de> Deserialize<'de> for OrderedConfig
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl FromConsumer for OrderedConfig
impl FromConsumer for OrderedConfig
sourceimpl IntoConsumerConfig for OrderedConfig
impl IntoConsumerConfig for OrderedConfig
fn into_consumer_config(self) -> Config
sourceimpl PartialEq<OrderedConfig> for OrderedConfig
impl PartialEq<OrderedConfig> for OrderedConfig
sourcefn eq(&self, other: &OrderedConfig) -> bool
fn eq(&self, other: &OrderedConfig) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl Serialize for OrderedConfig
impl Serialize for OrderedConfig
impl Eq for OrderedConfig
impl StructuralEq for OrderedConfig
impl StructuralPartialEq for OrderedConfig
Auto Trait Implementations
impl RefUnwindSafe for OrderedConfig
impl Send for OrderedConfig
impl Sync for OrderedConfig
impl Unpin for OrderedConfig
impl UnwindSafe for OrderedConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more