pub struct Session<'a, T>(/* private fields */)
where
T: SessionPortal;
Expand description
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 Session::close
,
and a signal Session::receive_closed
. Whether it is allowed to
directly call Session::close
depends on the interface.
Wrapper of the DBus interface: org.freedesktop.portal.Session
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Session<'a, T>
impl<'a, T> !RefUnwindSafe for Session<'a, T>
impl<'a, T> Send for Session<'a, T>where
T: Send,
impl<'a, T> Sync for Session<'a, T>where
T: Sync,
impl<'a, T> Unpin for Session<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for Session<'a, T>
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
source§impl<T> DynamicType for T
impl<T> DynamicType for T
source§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more