#[non_exhaustive]pub enum TenantError {
RegistryFull {
issued: u32,
},
OpcodeOutOfRange {
tenant_id: u32,
local_opcode: u32,
cap: u32,
},
Revoked {
tenant_id: u32,
},
QuiesceTimeout {
tenant_id: u32,
outstanding: u64,
},
Backpressure {
tenant_id: u32,
outstanding: u64,
cap: u64,
},
StagingBackpressure {
tenant_id: u32,
requested: u64,
used: u64,
cap: u64,
},
ResidentHandleBackpressure {
tenant_id: u32,
requested: u64,
used: u64,
cap: u64,
},
ResourceUnderflow {
tenant_id: u32,
resource: &'static str,
requested: u64,
used: u64,
},
Pipeline(PipelineError),
}Expand description
Errors surfaced by the tenant registry.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RegistryFull
The registry ran out of tenant ids. Unregister unused tenants or raise the range per tenant.
OpcodeOutOfRange
Tried to publish an opcode outside the tenant’s reserved range. Almost always a caller bug.
Fields
Revoked
Tenant was unregistered concurrently; its handle is stale.
QuiesceTimeout
Quiesce timed out with inflight slots still outstanding.
Fields
Backpressure
Tenant has reached its configured outstanding-slot cap.
Fields
StagingBackpressure
Tenant has reached its configured staging-byte cap.
Fields
ResidentHandleBackpressure
Tenant has reached its configured resident-handle cap.
Fields
ResourceUnderflow
Tenant resource accounting would underflow.
Fields
Pipeline(PipelineError)
Protocol error bubbled up from Megakernel::publish_slot.
Trait Implementations§
Source§impl Debug for TenantError
impl Debug for TenantError
Source§impl Display for TenantError
impl Display for TenantError
Source§impl Error for TenantError
impl Error for TenantError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<PipelineError> for TenantError
impl From<PipelineError> for TenantError
Source§fn from(source: PipelineError) -> Self
fn from(source: PipelineError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TenantError
impl RefUnwindSafe for TenantError
impl Send for TenantError
impl Sync for TenantError
impl Unpin for TenantError
impl UnsafeUnpin for TenantError
impl UnwindSafe for TenantError
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
Mutably borrows from an owned value. Read more