pub enum AppIngressErrorKind {
AllocationFailed {
reason: AllocFailReason,
},
BudgetExceeded {
budget_remaining: usize,
},
PerItemCapExceeded {
cap: usize,
},
}Expand description
Sub-kind discriminator for InfraEvent::AppIngressError. One
top-level variant + sub-kind keeps the bus-topic count down -
subscribers route on the variant name and match the sub-kind out
of the event’s fields when they need to distinguish allocation
failure from budget exhaustion from a per-item cap.
Variants§
AllocationFailed
Fallible reservation of the engine-side ingress buffer
returned TryReserveError or hit a per-item cap before
allocation was attempted.
Fields
reason: AllocFailReasonWhy the reservation failed.
BudgetExceeded
Admitting this payload would push the engine over
NodeConfig::ingress_byte_budget.
Fields
PerItemCapExceeded
A per-item cap (max_app_event_bytes, max_invoke_inputs,
max_invoke_bytes, or max_completion_result_bytes) rejected
the payload before any allocation was attempted. The host’s
synchronous deliver_event / invoke call returns
DeliveryError::OversizePayload in addition to this bus
emission.
Trait Implementations§
Source§impl Clone for AppIngressErrorKind
impl Clone for AppIngressErrorKind
Source§fn clone(&self) -> AppIngressErrorKind
fn clone(&self) -> AppIngressErrorKind
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 AppIngressErrorKind
impl Debug for AppIngressErrorKind
impl Eq for AppIngressErrorKind
Source§impl PartialEq for AppIngressErrorKind
impl PartialEq for AppIngressErrorKind
Source§fn eq(&self, other: &AppIngressErrorKind) -> bool
fn eq(&self, other: &AppIngressErrorKind) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AppIngressErrorKind
Auto Trait Implementations§
impl Freeze for AppIngressErrorKind
impl RefUnwindSafe for AppIngressErrorKind
impl Send for AppIngressErrorKind
impl Sync for AppIngressErrorKind
impl Unpin for AppIngressErrorKind
impl UnsafeUnpin for AppIngressErrorKind
impl UnwindSafe for AppIngressErrorKind
Blanket Implementations§
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedComponent for T
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request