Struct kernel_manager::StarnixKernel
source · pub struct StarnixKernel { /* private fields */ }
Implementations§
source§impl StarnixKernel
impl StarnixKernel
sourcepub async fn create(
realm: RealmProxy,
kernel_url: &str,
start_info: ComponentStartInfo,
controller: ServerEnd<ComponentControllerMarker>,
) -> Result<(Self, impl Future<Output = ()>), Error>
pub async fn create( realm: RealmProxy, kernel_url: &str, start_info: ComponentStartInfo, controller: ServerEnd<ComponentControllerMarker>, ) -> Result<(Self, impl Future<Output = ()>), Error>
Creates a new instance of starnix_kernel
.
This is done by creating a new child in the kernels
collection.
Returns the kernel and a future that will resolve when the kernel has stopped.
sourcepub fn component_instance(&self) -> &Event
pub fn component_instance(&self) -> &Event
Gets the opaque token representing the container component.
sourcepub fn connect_to_protocol<P: DiscoverableProtocolMarker>(
&self,
) -> Result<P::Proxy, Error>
pub fn connect_to_protocol<P: DiscoverableProtocolMarker>( &self, ) -> Result<P::Proxy, Error>
Connect to the specified protocol exposed by the kernel.
Auto Trait Implementations§
impl !Freeze for StarnixKernel
impl !RefUnwindSafe for StarnixKernel
impl Send for StarnixKernel
impl Sync for StarnixKernel
impl Unpin for StarnixKernel
impl !UnwindSafe for StarnixKernel
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