#[non_exhaustive]pub enum SessionEvent {
Paused,
Resumed {
devices: Vec<TakenDevice>,
},
}Expand description
What a caller needs to act on.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Paused
Stop touching every device now.
The descriptors are about to stop working. Anything mapped from them has to be released by the caller – closing a descriptor does not unmap it, so a compositor that skips that leaks per switch.
Resumed
The devices are back, on new descriptors.
Every per-descriptor kernel object is gone: framebuffers, property blobs, client capabilities, GEM handles. All of it is rebuilt.
Fields
§
devices: Vec<TakenDevice>The devices as they now stand, in the order they were taken.
Trait Implementations§
Source§impl Clone for SessionEvent
impl Clone for SessionEvent
Source§impl Debug for SessionEvent
impl Debug for SessionEvent
impl Eq for SessionEvent
Source§impl PartialEq for SessionEvent
impl PartialEq for SessionEvent
impl StructuralPartialEq for SessionEvent
Auto Trait Implementations§
impl Freeze for SessionEvent
impl RefUnwindSafe for SessionEvent
impl Send for SessionEvent
impl Sync for SessionEvent
impl Unpin for SessionEvent
impl UnsafeUnpin for SessionEvent
impl UnwindSafe for SessionEvent
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