pub trait SystemServiceService: Send + Sync {
// Required methods
fn get_power_capabilities(
&self,
ctx: RpcCallContext,
request: Empty,
) -> SystemServiceGetPowerCapabilitiesFuture<'_>;
fn shutdown(
&self,
ctx: RpcCallContext,
request: PowerOptions,
) -> SystemServiceShutdownFuture<'_>;
fn reboot(
&self,
ctx: RpcCallContext,
request: PowerOptions,
) -> SystemServiceRebootFuture<'_>;
}Required Methods§
fn get_power_capabilities( &self, ctx: RpcCallContext, request: Empty, ) -> SystemServiceGetPowerCapabilitiesFuture<'_>
fn shutdown( &self, ctx: RpcCallContext, request: PowerOptions, ) -> SystemServiceShutdownFuture<'_>
fn reboot( &self, ctx: RpcCallContext, request: PowerOptions, ) -> SystemServiceRebootFuture<'_>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".