Enum wayland_protocols::unstable::pointer_constraints::v1::client::zwp_pointer_constraints_v1::Lifetime [−][src]
#[repr(u32)]
#[non_exhaustive]
pub enum Lifetime {
Oneshot,
Persistent,
}
Expand description
constraint lifetime
These values represent different lifetime semantics. They are passed as arguments to the factory requests to specify how the constraint lifetimes should be managed.
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.
Oneshot
the pointer constraint is defunct once deactivated
A oneshot pointer constraint will never reactivate once it has been deactivated. See the corresponding deactivation event (wp_locked_pointer.unlocked and wp_confined_pointer.unconfined) for details.
Persistent
the pointer constraint may reactivate
A persistent pointer constraint may again reactivate once it has been deactivated. See the corresponding deactivation event (wp_locked_pointer.unlocked and wp_confined_pointer.unconfined) for details.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Lifetime
impl UnwindSafe for Lifetime
Blanket Implementations
Mutably borrows from an owned value. Read more