#[non_exhaustive]pub enum Request {
SetScale1000 {
scale_1000: i32,
},
Release,
SetAdaptiveSyncExt {
state: WEnum<AdaptiveSyncStateExt>,
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SetScale1000
set the scale multiplied by 1000
This request sets the head’s scale multiplied by 1000 for additional precision.
This request is meant to be used in place of zwlr_output_configuration_head_v1::set_scale
.
Using set_scale
and set_scale_1000
at once will thus raise an already_set
error on the
original zwlr_output_configuration_head_v1
.
Any request conflicting with set_scale
will also conflict with set_scale_1000
.
Release
destroy the output configuration head
Using this request a client can tell the compositor that it is not going
to use the configuration object anymore. Already issued requests will
still be attached to the original zwlr_output_configuration_head_v1
until it is destroyed.
This is a destructor, once received this object cannot be used any longer.
SetAdaptiveSyncExt
set adaptive sync state
This request requests a new adaptive sync state.
This request is meant to be used in place of zwlr_output_configuration_head_v1::set_adaptive_sync
.
Using set_adaptive_sync
and set_adaptive_sync_ext
at once will thus raise an already_set
error on the
original zwlr_output_configuration_head_v1
.
Any request conflicting with set_adaptive_sync
will also conflict with set_adaptive_sync_ext
.
Only available since version 2 of the interface
Fields
state: WEnum<AdaptiveSyncStateExt>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.