Enum wayland_protocols::unstable::pointer_constraints::v1::client::zwp_pointer_constraints_v1::Lifetime
source · #[non_exhaustive]#[repr(u32)]pub enum Lifetime {
Oneshot = 1,
Persistent = 2,
}
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 = 1
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 = 2
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§
source§impl PartialEq for Lifetime
impl PartialEq for Lifetime
impl Copy for Lifetime
impl StructuralPartialEq for Lifetime
Auto Trait Implementations§
impl RefUnwindSafe for Lifetime
impl Send for Lifetime
impl Sync for Lifetime
impl Unpin for Lifetime
impl UnwindSafe for Lifetime
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