[][src]Struct ashpd::desktop::secret::SecretProxy

pub struct SecretProxy<'c>(_);

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]

Creates a new proxy for the given destination and path.

pub fn new_for_owned(
    conn: Connection,
    destination: String,
    path: String
) -> Result<Self>
[src]

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]

Retrieves a master secret for a sandboxed application.

Returns a RequestProxy object path..

Arguments

  • fd - Writable file descriptor for transporting the secret.
  • options - A RetrieveOptions

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]

type Target = Proxy<'c>

The resulting type after dereferencing.

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.