pub enum RestarterRequest {
Restart {
responder: RestarterRestartResponder,
},
}
Expand description
A protocol used to restart the currently running session.
Variants§
Restart
Restarts the session.
- error
RestartError.NOT_RUNNING
if there is no currently running session to restart. - error
RestartError.DESTROY_COMPONENT_FAILED
if an existing session component could not be destroyed. The existing session remains running at this point. - error
RestartError.CREATE_COMPONENT_FAILED
if the session component could not be started. No session will be running at this point.
Fields
§
responder: RestarterRestartResponder
Implementations§
Source§impl RestarterRequest
impl RestarterRequest
pub fn into_restart(self) -> Option<RestarterRestartResponder>
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 RestarterRequest
impl !RefUnwindSafe for RestarterRequest
impl Send for RestarterRequest
impl Sync for RestarterRequest
impl Unpin for RestarterRequest
impl !UnwindSafe for RestarterRequest
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