[−][src]Struct ashpd::desktop::secret::SecretProxy
The interface lets sandboxed applications retrieve a per-application secret. The secret can then be used for encrypting confidential data inside the sandbox.
Implementations
impl<'c> SecretProxy<'c>
[src]
pub fn new(conn: &Connection) -> Result<Self>
[src]
Creates a new proxy with the default service & path.
pub fn new_for(
conn: &Connection,
destination: &'c str,
path: &'c str
) -> Result<Self>
[src]
conn: &Connection,
destination: &'c str,
path: &'c str
) -> Result<Self>
Creates a new proxy for the given destination
and path
.
pub fn new_for_owned(
conn: Connection,
destination: String,
path: String
) -> Result<Self>
[src]
conn: Connection,
destination: String,
path: String
) -> Result<Self>
Same as new_for
but takes ownership of the passed arguments.
pub fn into_inner(self) -> Proxy<'c>
[src]
Consumes self
, returning the underlying zbus::Proxy
.
pub fn inner(&self) -> &Proxy<'_>
[src]
The reference to the underlying zbus::Proxy
.
pub fn retrieve_secret(
&self,
fd: Fd,
options: RetrieveOptions
) -> Result<OwnedObjectPath>
[src]
&self,
fd: Fd,
options: RetrieveOptions
) -> Result<OwnedObjectPath>
Retrieves a master secret for a sandboxed application.
Returns a RequestProxy
object path..
Arguments
fd
- Writable file descriptor for transporting the secret.options
- ARetrieveOptions
pub fn version(&self) -> Result<u32>
[src]
version property
pub fn introspect(&self) -> Result<String>
[src]
Trait Implementations
impl<'c> Deref for SecretProxy<'c>
[src]
Auto Trait Implementations
impl<'c> !RefUnwindSafe for SecretProxy<'c>
impl<'c> !Send for SecretProxy<'c>
impl<'c> !Sync for SecretProxy<'c>
impl<'c> Unpin for SecretProxy<'c>
impl<'c> !UnwindSafe for SecretProxy<'c>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,