#[non_exhaustive]pub enum RuntimeOperation {
Show 55 variants
BuildTokioRuntime,
LoadConfigFile,
DeserializeConfigFile,
DetectProcessMemoryLimit,
ResolveManagedMemoryBudget,
ReadFile,
ReadFileBackup,
PersistMetadata,
MetadataCreateParent,
MetadataCreateTemporary,
MetadataWriteTemporary,
MetadataSyncTemporary,
MetadataReplaceTarget,
MetadataSyncParent,
MetadataRemoveTemporary,
WaitForDurableMetadata,
AdmitMetadataSnapshot,
AdmitMetadataOperation,
AdmitMetadataBytes,
MetadataWorkerStopped,
MetadataIoClosed,
RegisterSigtermHandler,
RegisterSigintHandler,
WaitForSignal,
CreateTaskGroupChild,
SpawnTaskGroupTask,
SpawnServiceTask,
SpawnSchedulerTask,
RuntimeContext,
StartServiceLifecycle,
ServiceLifecycleTaskGroup,
BindServiceHealthProbe,
InspectServiceHealthProbe,
MarkServiceReady,
SuspendServiceReadiness,
RestoreServiceReadiness,
ShutdownRuntimeBlocking,
BlockingQueueAdmission,
RunBlockingTask,
BlockingTaskDeadline,
BlockingTask,
BlockingExecutorKind,
ShutdownBlockingExecutor,
ClearCompletedSchedules,
RegisterScheduledTask,
SpawnOperation,
OperationOwner,
MetadataIo,
ServiceLifecycleEnvironment,
ServiceLifecycleProbeAddress,
ServiceLifecycleDuration,
ServiceLifecycleDurationRange,
ServiceLifecycleDrainMethods,
MetadataResourceTarget,
External(ExternalOperation),
}Expand description
A closed, low-cardinality runtime operation identifier.
Runtime failures carry this value instead of caller-provided text so that
diagnostics remain aggregatable and cannot disclose request, path, or
configuration values. The named variants are operations this crate
performs. A crate built on the runtime labels its own operations with
Self::External instead of adding variants here.
New runtime operations may be added in a minor release, so a match
outside this crate needs a wildcard arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BuildTokioRuntime
Builds an owned Tokio runtime.
LoadConfigFile
Loads a runtime configuration file.
DeserializeConfigFile
Deserializes a runtime configuration file.
DetectProcessMemoryLimit
Detects the process memory limit.
ResolveManagedMemoryBudget
Resolves the managed memory budget from the effective limit.
ReadFile
Reads a file.
ReadFileBackup
Reads a file before creating a backup.
PersistMetadata
Persists metadata through a compatibility filesystem path.
MetadataCreateParent
Creates a metadata parent directory.
MetadataCreateTemporary
Creates a metadata temporary file.
MetadataWriteTemporary
Writes a metadata temporary file.
MetadataSyncTemporary
Synchronizes a metadata temporary file.
MetadataReplaceTarget
Replaces a metadata target file.
MetadataSyncParent
Synchronizes a metadata parent directory.
MetadataRemoveTemporary
Removes a metadata temporary file.
WaitForDurableMetadata
Waits for metadata durability.
AdmitMetadataSnapshot
Admits a metadata snapshot.
AdmitMetadataOperation
Admits metadata work.
AdmitMetadataBytes
Admits metadata bytes.
MetadataWorkerStopped
Uses a stopped metadata worker.
MetadataIoClosed
Uses a closed metadata actor.
RegisterSigtermHandler
Registers the SIGTERM handler.
RegisterSigintHandler
Registers the SIGINT handler.
WaitForSignal
Waits for an operating-system signal.
CreateTaskGroupChild
Creates a task-group child.
SpawnTaskGroupTask
Spawns a task-group task.
SpawnServiceTask
Spawns a service task.
SpawnSchedulerTask
Spawns a scheduler task.
RuntimeContext
Uses the ambient runtime context.
StartServiceLifecycle
Starts a service lifecycle.
ServiceLifecycleTaskGroup
Uses a service lifecycle task group.
BindServiceHealthProbe
Binds a service health probe.
InspectServiceHealthProbe
Inspects a service health probe.
MarkServiceReady
Marks a service ready.
SuspendServiceReadiness
Suspends service readiness.
RestoreServiceReadiness
Restores service readiness.
ShutdownRuntimeBlocking
Shuts down an owned runtime from a blocking caller.
BlockingQueueAdmission
Performs blocking executor admission.
RunBlockingTask
Runs a blocking task.
BlockingTaskDeadline
Waits for a blocking task deadline.
BlockingTask
Waits for a blocking task.
BlockingExecutorKind
Uses an unsupported blocking executor kind.
ShutdownBlockingExecutor
Waiting for an isolated blocking executor to release its work.
ClearCompletedSchedules
Clears completed scheduled registrations.
RegisterScheduledTask
Registers a scheduled task.
SpawnOperation
Spawns an operation.
OperationOwner
Validates an operation owner.
MetadataIo
Performs metadata I/O through an adapter.
ServiceLifecycleEnvironment
Reads service lifecycle environment configuration.
ServiceLifecycleProbeAddress
Parses a service lifecycle probe address.
ServiceLifecycleDuration
Parses a service lifecycle duration.
ServiceLifecycleDurationRange
Validates a service lifecycle duration range.
ServiceLifecycleDrainMethods
Parses the HTTP methods accepted by the drain probe.
MetadataResourceTarget
Validates metadata resource targeting.
External(ExternalOperation)
An operation owned by a crate that builds on the runtime.
Implementations§
Source§impl RuntimeOperation
impl RuntimeOperation
Sourcepub const fn external(label: &'static str) -> Self
pub const fn external(label: &'static str) -> Self
Labels an operation owned outside this crate.
Define the result as a constant so an invalid label fails compilation;
see ExternalOperation::new for the accepted form.
§Panics
Panics when label violates the ExternalOperation::new contract.