[][src]Struct wlroots::backend::Session

pub struct Session<'session> { /* fields omitted */ }

Methods

impl<'session> Session<'session>
[src]

Signal for when the session becomes active/inactive. It's called when we swap virtual terminal.

Changes the virtual terminal.

Opens a session, taking control of the current virtual terminal. This should not be called if another program is already in control of the terminal (Xorg, another Wayland compositor, etc.).

If logind support is not enabled, you must have CAP_SYS_ADMIN or be root. It is safe to drop privileges after this is called.

Returns None on error.

Closes a previously opened session and restores the virtual terminal. You should call Session::close_file on each files you opened with Session::open_file before you call this.

Opens the file at path. This can only be used to open DRM or evdev (input) devices.

When the session becomes inactive:

  • DRM files lose their DRM master status
  • evdev files become invalid and should be closed

Returns -errno on error.

Auto Trait Implementations

impl<'session> !Send for Session<'session>

impl<'session> !Sync for Session<'session>

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more