pub struct KernelApis { /* private fields */ }Implementations§
Source§impl KernelApis
impl KernelApis
Sourcepub fn new(inner: Arc<dyn HostHandler>) -> Self
pub fn new(inner: Arc<dyn HostHandler>) -> Self
Serves the root lane (“main”) of a host without a task runtime; see KernelApis::with_host.
Sourcepub fn with_host(self, host: Arc<dyn TaskHost>, lane: impl Into<String>) -> Self
pub fn with_host(self, host: Arc<dyn TaskHost>, lane: impl Into<String>) -> Self
The task operations modules use, and the lane whose kernel this handler serves.
pub fn with(self, module: Arc<dyn ApiModule>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for KernelApis
impl !RefUnwindSafe for KernelApis
impl !UnwindSafe for KernelApis
impl Forget for KernelApis
impl Move for KernelApis
impl Send for KernelApis
impl Sync for KernelApis
impl Unpin for KernelApis
impl UnsafeUnpin for KernelApis
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