pub struct RingKernel {
pub(crate) inner: Box<dyn RingKernelRuntime>,
}Expand description
Main RingKernel runtime facade.
This struct provides the primary API for creating and managing GPU-native actor systems.
Fields§
§inner: Box<dyn RingKernelRuntime>Inner runtime implementation.
Implementations§
Source§impl RingKernel
impl RingKernel
Sourcepub fn builder() -> RingKernelBuilder
pub fn builder() -> RingKernelBuilder
Create a new runtime builder.
Sourcepub async fn with_backend(backend: Backend) -> Result<Self>
pub async fn with_backend(backend: Backend) -> Result<Self>
Create with a specific backend.
Sourcepub fn is_backend_available(&self, backend: Backend) -> bool
pub fn is_backend_available(&self, backend: Backend) -> bool
Check if a backend is available.
Sourcepub async fn launch(
&self,
kernel_id: &str,
options: LaunchOptions,
) -> Result<KernelHandle>
pub async fn launch( &self, kernel_id: &str, options: LaunchOptions, ) -> Result<KernelHandle>
Launch a kernel.
Sourcepub fn get_kernel(&self, kernel_id: &KernelId) -> Option<KernelHandle>
pub fn get_kernel(&self, kernel_id: &KernelId) -> Option<KernelHandle>
Get a handle to an existing kernel.
Sourcepub fn list_kernels(&self) -> Vec<KernelId>
pub fn list_kernels(&self) -> Vec<KernelId>
List all kernel IDs.
Sourcepub fn metrics(&self) -> RuntimeMetrics
pub fn metrics(&self) -> RuntimeMetrics
Get runtime metrics.
Auto Trait Implementations§
impl Freeze for RingKernel
impl !RefUnwindSafe for RingKernel
impl Send for RingKernel
impl Sync for RingKernel
impl Unpin for RingKernel
impl !UnwindSafe for RingKernel
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§fn deserialize(
&self,
deserializer: &mut D,
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.