#[non_exhaustive]pub enum Request<'a> {
MirrorHead {
head: ZwlrOutputHeadV1,
mirroring: ZwlrOutputHeadV1,
},
Release,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MirrorHead
enable and configure a head to mirror another head
Enable a head mirroring another.
This request creates a head configuration object that can be used to change the head’s properties.
This is an alternative to zwlr_output_configuration_v1::enable_head or zwlr_output_configuration_v1::disable_head
Using either with the same head argument will result in an already_configured_head error on the original
zwlr_output_configuration_v1 object.
All properties are still required to be set to the resulting zwlr_output_configuration_head by the client
as denoted in the original protocol. Some like set_position however might be ignored in mirroring configurations.
Trying to set a disabled or mirroring head as mirroring or calling disable_head/mirror_head after using a head
as a mirroring argument will raise a mirrored_head_busy protocol error.
Fields
head: ZwlrOutputHeadV1the head to be enabled
mirroring: ZwlrOutputHeadV1the head to be mirrored
Release
destroy the output configuration
Using this request a client can tell the compositor that it is not going
to use the configuration object anymore. Any changes to the outputs
will still be attached to the original zwlr_output_configuration_head_v1
if it isn’t destroyed.
This is a destructor, once sent this object cannot be used any longer.
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
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.