#[non_exhaustive]pub enum Request {
CaptureOutput {
frame: New<ZwlrScreencopyFrameV1>,
overlay_cursor: i32,
output: WlOutput,
},
CaptureOutputRegion {
frame: New<ZwlrScreencopyFrameV1>,
overlay_cursor: i32,
output: WlOutput,
x: i32,
y: i32,
width: i32,
height: i32,
},
Destroy,
}
Available on crate feature
server
only.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.
CaptureOutput
Fields
§
frame: New<ZwlrScreencopyFrameV1>
capture an output
Capture the next frame of an entire output.
CaptureOutputRegion
Fields
§
frame: New<ZwlrScreencopyFrameV1>
capture an output’s region
Capture the next frame of an output’s region.
The region is given in output logical coordinates, see xdg_output.logical_size. The region will be clipped to the output’s extents.
Destroy
destroy the manager
All objects created by the manager will still remain valid, until their appropriate destroy request has been called.
This is a destructor, once received this object cannot be used any longer.
Implementations§
Trait Implementations§
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
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
.§fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§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.§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.