pub struct SystemServiceClient { /* private fields */ }Implementations§
Source§impl SystemServiceClient
impl SystemServiceClient
pub fn instance_id(&self) -> InstanceId
pub fn for_instance(client: RpcClient, instance_id: InstanceId) -> Self
pub async fn resolve_named( client: RpcClient, name: impl Into<String>, ) -> Result<Self, RuntimeError>
pub async fn get_power_capabilities( &self, request: &Empty, ) -> Result<Vec<String>, RuntimeError>
pub async fn shutdown( &self, request: &PowerOptions, ) -> Result<Empty, RuntimeError>
pub async fn reboot( &self, request: &PowerOptions, ) -> Result<Empty, RuntimeError>
Trait Implementations§
Source§impl Clone for SystemServiceClient
impl Clone for SystemServiceClient
Source§fn clone(&self) -> SystemServiceClient
fn clone(&self) -> SystemServiceClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for SystemServiceClient
impl !UnwindSafe for SystemServiceClient
impl Freeze for SystemServiceClient
impl Send for SystemServiceClient
impl Sync for SystemServiceClient
impl Unpin for SystemServiceClient
impl UnsafeUnpin for SystemServiceClient
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