Struct kernel_manager::StarnixKernel
source · pub struct StarnixKernel {
pub name: String,
/* private fields */
}
Fields§
§name: String
The name of the Starnix kernel within that realm.
Implementations§
source§impl StarnixKernel
impl StarnixKernel
sourcepub async fn create(
realm: RealmProxy,
kernel_url: &str,
start_info: ComponentStartInfo,
controller: ServerEnd<ComponentControllerMarker>
) -> Result<Self, Error>
pub async fn create( realm: RealmProxy, kernel_url: &str, start_info: ComponentStartInfo, controller: ServerEnd<ComponentControllerMarker> ) -> Result<Self, Error>
Creates a new instance of starnix_kernel
.
This is done by creating a new child in the kernels
collection.
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