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 ==.