pub enum DriverRequest {
Stop {
control_handle: DriverControlHandle,
},
}
Expand description
Protocol through which a driver’s lifecycle can be managed.
The Driver Runner will call Stop() on this protocol to indicate that the Driver Host should stop the Driver. The Driver Host should close the server end of the channel with an epitath to signal that the driver has been stopped.
EPITAPH
This protocol sends a FIDL epitaph to indicate that the driver instance has been terminated correctly. The Driver Host must send an epitaph of ZX_OK in order to indicate the Driver was Stopped correctly. Not sending an epitaph, or sending an error, will cause Driver Runner to log an error.
Variants§
Stop
Request that the Driver is Stopped.
After stopping the driver instance, the server should close this connection with an epitath. This signals that the Driver has been stopped.
Fields
control_handle: DriverControlHandle
Implementations§
Source§impl DriverRequest
impl DriverRequest
pub fn into_stop(self) -> Option<DriverControlHandle>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL