Enum wayland_protocols_wlr::output_management::v1::client::zwlr_output_configuration_head_v1::Request
source · #[non_exhaustive]pub enum Request<'a> {
SetMode {
mode: ZwlrOutputModeV1,
},
SetCustomMode {
width: i32,
height: i32,
refresh: i32,
},
SetPosition {
x: i32,
y: i32,
},
SetTransform {
transform: WEnum<Transform>,
},
SetScale {
scale: f64,
},
SetAdaptiveSync {
state: WEnum<AdaptiveSyncState>,
},
}
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.
SetMode
set the mode
This request sets the head’s mode.
Fields
§
mode: ZwlrOutputModeV1
SetCustomMode
set a custom mode
This request assigns a custom mode to the head. The size is given in physical hardware units of the output device. If set to zero, the refresh rate is unspecified.
It is a protocol error to set both a mode and a custom mode.
Fields
SetPosition
set the position
This request sets the head’s position in the global compositor space.
Fields
SetTransform
set the transform
This request sets the head’s transform.
SetScale
set the scale
This request sets the head’s scale.
SetAdaptiveSync
enable/disable adaptive sync
This request enables/disables adaptive sync. Adaptive sync is also known as Variable Refresh Rate or VRR.
Only available since version 4 of the interface
Fields
§
state: WEnum<AdaptiveSyncState>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Request<'a>
impl<'a> !RefUnwindSafe for Request<'a>
impl<'a> Send for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> !UnwindSafe for Request<'a>
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
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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.