Skip to main content

Crate rustkernel_core

Crate rustkernel_core 

Source
Expand description

§RustKernel Core

Core abstractions, traits, and registry for the RustKernels GPU kernel library.

This crate provides:

  • Domain and kernel type definitions
  • Kernel metadata and configuration
  • Trait definitions for batch and ring kernels
  • Kernel registry with auto-discovery
  • Licensing and feature gating system
  • Actix actor integration for GPU-backed actors
  • Runtime lifecycle management
  • Enterprise security, observability, and resilience patterns
  • Deep integration with ringkernel-core 0.4.2 (domain conversion, K2K, enterprise re-exports)

Modules§

checkpoint
Kernel checkpointing for persistent state snapshot and restore.
config
Production Configuration Management
dispatcher
Multi-Kernel Message Dispatcher
domain
Domain definitions for kernel categorization.
error
Error types for RustKernels.
health
Health monitoring and resilience infrastructure for RingKernel.
k2k
K2K (Kernel-to-Kernel) coordination utilities.
kernel
Kernel metadata and configuration.
license
Licensing and feature gating system.
memory
Memory Management Infrastructure
messages
Message types and traits for Ring kernel communication.
observability
Observability Infrastructure
prelude
Prelude module for convenient imports
pubsub
Topic-based publish/subscribe messaging.
registry
Kernel registry with auto-discovery.
resilience
Resilience Patterns
ring
Direct access to the full RingKernel 0.4.2 API.
runtime
Runtime Lifecycle Management
security
Security Infrastructure
slo
Service Level Objective (SLO) validation.
test_kernels
Test kernels for validation and benchmarking.
traits
Core kernel traits.

Structs§

ControlBlock
Kernel control block (128 bytes, cache-line aligned).
HlcClock
Hybrid Logical Clock for generating causally-ordered timestamps.
HlcTimestamp
Hybrid Logical Clock timestamp.
K2KBroker
K2K message broker for routing messages between kernels.
K2KConfig
Configuration for K2K messaging.
K2KEndpoint
K2K endpoint for a single kernel.
K2KMessage
A K2K message with routing information.
KernelHandle
Handle to a launched kernel.
KernelId
Unique kernel identifier.
KernelStatus
Kernel status including state and metrics.
LaunchOptions
Options for launching a kernel.
MessageEnvelope
Envelope containing header and serialized payload.
MessageHeader
Fixed-size message header (256 bytes, cache-line aligned).
MessageId
Unique message identifier.
RingContext
GPU intrinsics facade for kernel handlers.
RingCorrelationId
Correlation ID for request-response patterns.
RuntimeMetrics
Runtime-level metrics.

Enums§

Backend
GPU backend type.
DeliveryStatus
Status of message delivery.
KernelState
Kernel lifecycle state.
Priority
Message priority levels.
RingKernelError
Comprehensive error type for RingKernel operations.

Traits§

MessageQueue
Trait for message queue implementations.
RingKernelRuntime
Backend-agnostic runtime trait for kernel management.
RingMessage
Trait for types that can be sent as kernel messages.