Module prelude

Module prelude 

Source
Expand description

Prelude module for convenient imports.

Import everything you need with:

use rustkernel::prelude::*;

Structs§

AnalyticsContext
Analytics context for reusable buffers
AnalyticsContextManager
Analytics context manager
AuthConfig
Authentication configuration
CircuitBreaker
Circuit breaker for a kernel
CircuitBreakerConfig
Circuit breaker configuration
CorrelationId
Correlation ID for request-response pairing.
DeadlineContext
Deadline context for propagating deadlines
DevelopmentLicense
Development license that allows all domains (no validation).
EchoKernel
Simple echo kernel for latency testing.
ExecutionContext
Execution context for kernel invocations.
FanOutTracker
Tracks fan-out broadcast destinations and delivery status.
HealthCheckResult
Health check result
HealthProbe
Health probe for a kernel
HlcTimestamp
Hybrid Logical Clock timestamp.
InterPhaseReduction
Inter-phase reduction state
IterativeConvergenceSummary
Summary of iterative algorithm convergence.
IterativeState
State for tracking iterative algorithm convergence.
K2KBroker
K2K message broker for routing messages between kernels.
K2KEndpoint
K2K endpoint for a single kernel.
K2KWorkerResult
Result from a worker in a scatter-gather operation.
KernelConfig
Runtime configuration for a kernel instance.
KernelHandle
Handle to a launched kernel.
KernelId
Unique kernel identifier.
KernelMemoryManager
Kernel memory manager
KernelMetadata
Kernel metadata (mirrors C# [GpuKernel] attribute).
KernelRegistry
Central registry for all kernels.
KernelResult
Generic result wrapper for kernel responses.
KernelRuntime
The main RustKernels runtime
LaunchOptions
Options for launching a kernel.
License
License configuration.
MatMul
Matrix multiplication kernel.
MemoryConfig
Memory configuration
MemoryStats
Memory statistics
MessageId
Unique message identifier.
PermissionSet
A set of permissions
PipelineTracker
Tracks progress through a multi-stage pipeline.
ProductionConfig
Unified production configuration
ProductionConfigBuilder
Configuration builder
RecoveryPolicy
Recovery policy for kernel failures
ReduceSum
Sum reduction kernel.
ReductionConfig
Configuration for inter-phase reduction
RegistryStats
Registry statistics.
ResilienceConfig
Unified resilience configuration
RetryConfig
Retry configuration
RingContext
GPU intrinsics facade for kernel handlers.
RuntimeBuilder
Builder for KernelRuntime
RuntimeConfig
Runtime configuration
RuntimeHandle
Handle to a running runtime for status queries and control
RuntimeStats
Runtime statistics
SLOValidator
SLO validator for kernel performance.
ScatterGatherState
Tracks scatter-gather operation state.
SecureRingContext
Secure ring context with authentication.
SecurityConfig
Unified security configuration
SecurityContext
Security context for an authenticated request
TenantId
Tenant identifier
TimeoutConfig
Timeout configuration
VectorAdd
Simple vector addition kernel.

Enums§

CircuitState
Circuit breaker state
Domain
Business/analytical domain for kernel categorization.
HealthStatus
Health status for kernel health checks
K2KControlMessage
Control messages for K2K coordination between kernels.
K2KPriority
Priority levels for K2K messages.
KernelError
Errors that can occur during kernel operations.
KernelMode
Kernel execution mode.
KernelPermission
Kernel permission aliases
KernelState
Kernel lifecycle state.
LicenseError
License validation errors.
LifecycleState
Runtime lifecycle states
MemoryError
Memory errors
Permission
Kernel-level permissions
PressureLevel
Memory pressure level
Role
Pre-defined roles
RuntimePreset
Runtime presets for common deployment scenarios
SLOResult
SLO validation result.
SyncMode
Synchronization mode for multi-phase reductions

Traits§

BatchKernel
Trait for batch (CPU-orchestrated) kernels.
BatchMessage
Trait for batch kernel messages (CPU-orchestrated execution).
CheckpointableKernel
Trait for kernels that support checkpoint/restore.
DegradableKernel
Trait for kernels that support graceful degradation.
GpuKernel
Base trait for all GPU kernels.
HealthCheck
Health check trait for components
IterativeKernel
Trait for iterative (multi-pass) kernels.
KernelRequest
Base trait for kernel request messages.
KernelResponse
Base trait for kernel response messages.
LicenseValidator
License validator trait.
RingKernelHandler
Trait for ring (persistent actor) kernels.
RingMessage
Trait for types that can be sent as kernel messages.

Functions§

kernel_id_to_u64
Convert a KernelId to a u64 hash for message envelope addressing.

Type Aliases§

Result
Result type alias using KernelError.

Attribute Macros§

gpu_kernel
Define a GPU kernel with metadata.
kernel_state
Attribute for marking kernel state types.

Derive Macros§

KernelMessage
Derive macro for kernel messages.