pub struct PersistentSubscriptionSettings<A> {
Show 13 fields pub resolve_link_tos: bool, pub start_from: StreamPosition<A>, pub extra_statistics: bool, pub message_timeout: Duration, pub max_retry_count: i32, pub live_buffer_size: i32, pub read_batch_size: i32, pub history_buffer_size: i32, pub checkpoint_after: Duration, pub checkpoint_lower_bound: i32, pub checkpoint_upper_bound: i32, pub max_subscriber_count: i32, pub consumer_strategy_name: SystemConsumerStrategy,
}
Expand description

Gathers every persistent subscription property.

Fields§

§resolve_link_tos: bool

Whether or not the persistent subscription should resolve link events to their linked events.

§start_from: StreamPosition<A>

Where the subscription should start from (event number).

§extra_statistics: bool

Whether or not in depth latency statistics should be tracked on this subscription.

§message_timeout: Duration

The amount of time after which a message should be considered to be timeout and retried.

§max_retry_count: i32

The maximum number of retries (due to timeout) before a message get considered to be parked.

§live_buffer_size: i32

The size of the buffer listening to live messages as they happen.

§read_batch_size: i32

The number of events read at a time when paging in history.

§history_buffer_size: i32

The number of events to cache when paging through history.

§checkpoint_after: Duration

The amount of time to try checkpoint after.

§checkpoint_lower_bound: i32

The minimum number of messages to checkpoint.

§checkpoint_upper_bound: i32

The maximum number of messages to checkpoint. If this number is reached , a checkpoint will be forced.

§max_subscriber_count: i32

The maximum number of subscribers allowed.

§consumer_strategy_name: SystemConsumerStrategy

The strategy to use for distributing events to client consumers.

Trait Implementations§

source§

impl<A: Clone> Clone for PersistentSubscriptionSettings<A>

source§

fn clone(&self) -> PersistentSubscriptionSettings<A>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<A: Debug> Debug for PersistentSubscriptionSettings<A>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<A> Default for PersistentSubscriptionSettings<A>

source§

fn default() -> PersistentSubscriptionSettings<A>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more