Skip to main content

SystemServiceService

Trait SystemServiceService 

Source
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§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§