pub struct LauncherRegistry(/* private fields */);Expand description
Boot-built launcher registry; callers select an identity, never a concrete OS type.
Implementations§
Source§impl LauncherRegistry
impl LauncherRegistry
Sourcepub fn register(&mut self, launcher: Arc<dyn SandboxLauncher>) -> Result<()>
pub fn register(&mut self, launcher: Arc<dyn SandboxLauncher>) -> Result<()>
Registers one unique boot-selected launcher.
Sourcepub fn launch(
&self,
id: &str,
request: &SandboxRequest,
cancellation: &ProcessCancellation,
) -> SandboxAttempt
pub fn launch( &self, id: &str, request: &SandboxRequest, cancellation: &ProcessCancellation, ) -> SandboxAttempt
Dispatches through the selected launcher without caller type dispatch.
Trait Implementations§
Source§impl Default for LauncherRegistry
impl Default for LauncherRegistry
Source§fn default() -> LauncherRegistry
fn default() -> LauncherRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for LauncherRegistry
impl !UnwindSafe for LauncherRegistry
impl Freeze for LauncherRegistry
impl Send for LauncherRegistry
impl Sync for LauncherRegistry
impl Unpin for LauncherRegistry
impl UnsafeUnpin for LauncherRegistry
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