pub enum LauncherRequest {
Launch {
configuration: LaunchConfiguration,
responder: LauncherLaunchResponder,
},
}Expand description
A protocol used to launch sessions.
Variants§
Launch
Launches the session detailed in configuration.
If a session is currently running, the component associated with the running session will be destroyed.
configurationdescribes the session to launch.
- error
LaunchError.INVALID_ARGSifconfiguration.session_urlis not set. - error
LaunchError.NOT_FOUNDifconfiguration.session_urlcould not be resolved. - error
LaunchError.DESTROY_COMPONENT_FAILEDif an existing session component could not be destroyed. The existing session remains running at this point. - error
LaunchError.CREATE_COMPONENT_FAILEDif the session component could not be started. No session will be running at this point.
Implementations§
Source§impl LauncherRequest
impl LauncherRequest
pub fn into_launch( self, ) -> Option<(LaunchConfiguration, LauncherLaunchResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LauncherRequest
impl !RefUnwindSafe for LauncherRequest
impl Send for LauncherRequest
impl Sync for LauncherRequest
impl Unpin for LauncherRequest
impl !UnwindSafe for LauncherRequest
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