pub struct StreamPolicy {Show 20 fields
pub max_admission_rows: u32,
pub max_admission_bytes: u64,
pub max_fetched_rows: u32,
pub max_fetched_bytes: u64,
pub group_pending: PendingBudget,
pub welcome_pending: PendingBudget,
pub identity_pending: PendingBudget,
pub max_pending_rows_per_topic: u64,
pub max_pending_bytes_per_topic: u64,
pub max_dependency_requests: usize,
pub max_local_read_rows: u32,
pub max_local_read_bytes: u64,
pub receiver_fallback_interval: Duration,
pub active_database_poll_interval: Duration,
pub default_consumer_lease_duration: Duration,
pub identity_reference_wait: Duration,
pub barrier_timeout: Duration,
pub blocked_welcome_rescan_interval: Duration,
pub permanent_retry_initial: Duration,
pub permanent_retry_max: Duration,
}Expand description
Bounds apply to encoded items and row metadata, not to the whole database.
Fields§
§max_admission_rows: u32Maximum rows committed in one durable admission transaction.
max_admission_bytes: u64Maximum encoded bytes committed in one admission transaction.
max_fetched_rows: u32Maximum rows accepted from one network fetch, before admission chunks.
max_fetched_bytes: u64Maximum bytes accepted from one network fetch; independent of per-kind budgets.
group_pending: PendingBudgetTotal retained group-envelope budget across all group topics.
welcome_pending: PendingBudgetTotal retained Welcome budget, separate from group and identity budgets.
identity_pending: PendingBudgetTotal retained identity-envelope budget across identity topics.
max_pending_rows_per_topic: u64Per-topic row limit, applied alongside the total kind budget.
max_pending_bytes_per_topic: u64Per-topic byte limit; rejected chunks do not advance F.
max_dependency_requests: usizeMaximum concurrent dependency and fixed-target requests.
max_local_read_rows: u32Maximum stored candidates loaded by one local-delivery read.
max_local_read_bytes: u64Maximum candidate bytes checked before loading message blobs.
receiver_fallback_interval: DurationBound on stream-first receipt waits. Explicit sync queries without this wait.
active_database_poll_interval: DurationPoll interval for cross-process progress and missed local wake events.
default_consumer_lease_duration: DurationDefault-reader ownership expires after this interval without renewal.
identity_reference_wait: DurationHealthy-primary wait before an absent exact identity reference is rejected.
barrier_timeout: DurationOne budget for target capture, receipt, processing, and required send follow-up work.
blocked_welcome_rescan_interval: DurationInterval between full rescans of blocked Welcome rows.
permanent_retry_initial: DurationFirst delay before retrying a source that failed with a permanent error.
permanent_retry_max: DurationLongest delay between retries of a repeatedly failing source.
Implementations§
Source§impl StreamPolicy
impl StreamPolicy
Sourcepub fn fetched_limits(&self) -> IncomingBatchLimits
pub fn fetched_limits(&self) -> IncomingBatchLimits
The bounds of one fetched page.
Sourcepub fn incoming_limits(&self, kind: NetworkEntityKind) -> IncomingLimits
pub fn incoming_limits(&self, kind: NetworkEntityKind) -> IncomingLimits
The incoming limits for one entity kind.
Trait Implementations§
Source§impl Clone for StreamPolicy
impl Clone for StreamPolicy
Source§fn clone(&self) -> StreamPolicy
fn clone(&self) -> StreamPolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StreamPolicy
impl Debug for StreamPolicy
Source§impl Default for StreamPolicy
impl Default for StreamPolicy
Source§fn default() -> StreamPolicy
fn default() -> StreamPolicy
Auto Trait Implementations§
impl Freeze for StreamPolicy
impl RefUnwindSafe for StreamPolicy
impl Send for StreamPolicy
impl Sync for StreamPolicy
impl Unpin for StreamPolicy
impl UnsafeUnpin for StreamPolicy
impl UnwindSafe for StreamPolicy
Blanket Implementations§
§impl<T> AggregateExpressionMethods for T
impl<T> AggregateExpressionMethods for T
§fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
DISTINCT modifier for aggregate functions Read more§fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
ALL modifier for aggregate functions Read more§fn aggregate_filter<P>(self, f: P) -> Self::Outputwhere
P: AsExpression<Bool>,
Self: FilterDsl<<P as AsExpression<Bool>>::Expression>,
fn aggregate_filter<P>(self, f: P) -> Self::Outputwhere
P: AsExpression<Bool>,
Self: FilterDsl<<P as AsExpression<Bool>>::Expression>,
§fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<T> IntoSql for T
impl<T> IntoSql for T
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].