Struct ashpd::desktop::account::AccountProxy [−][src]
pub struct AccountProxy<'a>(_);
Expand description
The interface lets sandboxed applications query basic information about the user, like his name and avatar photo.
The portal backend will present the user with a dialog to confirm which (if any) information to share.
Implementations
Create a new instance of AccountProxy
.
pub async fn user_information(
&self,
identifier: WindowIdentifier,
reason: &str
) -> Result<UserInfo, Error>
pub async fn user_information(
&self,
identifier: WindowIdentifier,
reason: &str
) -> Result<UserInfo, Error>
Gets information about the user.
Arguments
identifier
- Identifier for the window.reason
- A user-visible reason for the request.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for AccountProxy<'a>
impl<'a> Send for AccountProxy<'a>
impl<'a> Sync for AccountProxy<'a>
impl<'a> Unpin for AccountProxy<'a>
impl<'a> !UnwindSafe for AccountProxy<'a>