logo
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

Get a reference to the underlying Proxy.

Emitted when a session is closed.

Specifications

See also Closed.

Closes the portal session to which this object refers and ends all related user interaction (dialogs, etc).

Specifications

See also Close.

Trait Implementations

Formats the value using the given formatter. Read more

Serialize this value into the given Serde serializer. Read more

Get the signature for the implementing type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Get the signature for the implementing type. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.