pub struct DeviceInfoClient { /* private fields */ }Implementations§
Source§impl DeviceInfoClient
impl DeviceInfoClient
pub fn new(client: XpcClient, device_identifier: impl Into<String>) -> Self
pub async fn get_device_info(&mut self) -> Result<XpcValue, DeviceInfoError>
pub async fn get_display_info(&mut self) -> Result<XpcValue, DeviceInfoError>
pub async fn query_mobilegestalt( &mut self, keys: &[&str], ) -> Result<XpcValue, DeviceInfoError>
pub async fn get_lockstate(&mut self) -> Result<XpcValue, DeviceInfoError>
pub async fn invoke( &mut self, feature_identifier: &str, input: XpcValue, ) -> Result<XpcValue, DeviceInfoError>
Auto Trait Implementations§
impl Freeze for DeviceInfoClient
impl !RefUnwindSafe for DeviceInfoClient
impl Send for DeviceInfoClient
impl !Sync for DeviceInfoClient
impl Unpin for DeviceInfoClient
impl UnsafeUnpin for DeviceInfoClient
impl !UnwindSafe for DeviceInfoClient
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