Struct ashpd::desktop::SessionProxy
source · [−]pub struct SessionProxy<'a>(_);Expand description
The Session interface is shared by all portal interfaces that involve long lived sessions. When a method that creates a session is called, if successful, the reply will include a session handle (i.e. object path) for a Session object, which will stay alive for the duration of the session.
The duration of the session is defined by the interface that creates it.
For convenience, the interface contains a method SessionProxy::close,
and a signal SessionProxy::receive_closed. Whether it is allowed to
directly call SessionProxy::close depends on the interface.
Wrapper of the DBus interface: org.freedesktop.portal.Session.
Implementations
sourceimpl<'a> SessionProxy<'a>
impl<'a> SessionProxy<'a>
Trait Implementations
sourceimpl<'a> Debug for SessionProxy<'a>
impl<'a> Debug for SessionProxy<'a>
sourceimpl<'a> Serialize for SessionProxy<'a>
impl<'a> Serialize for SessionProxy<'a>
sourceimpl<'a> Type for SessionProxy<'a>
impl<'a> Type for SessionProxy<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for SessionProxy<'a>
impl<'a> Send for SessionProxy<'a>
impl<'a> Sync for SessionProxy<'a>
impl<'a> Unpin for SessionProxy<'a>
impl<'a> !UnwindSafe for SessionProxy<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> DynamicType for T where
T: Type + ?Sized,
impl<T> DynamicType for T where
T: Type + ?Sized,
pub fn dynamic_signature(&self) -> Signature<'_>
pub fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more