#[non_exhaustive]pub enum Request<'a> {
InhibitOutput,
InhibitOutputDone,
CreateHotspot {
hotspot: u32,
threshold: u32,
timeout: u32,
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InhibitOutput
Don’t render the output
Request the compositor to not render the output, so the output usually is cleared to black color. To enable output rendering again, call inhibit_output_done.
InhibitOutputDone
Render the output
Stop inhibiting the output. This must be called as many times as inhibit_output was called to actually uninhibit rendering.
The inhibit/inhibit_done requests can be called multiple times, even from different apps, so don’t assume that a call to inhibit_done would always mean actually starting the rendering process.
CreateHotspot
Create a hotspot on the output
A hotspot on the output is an edge or a corner region of the output where the mouse or touch point has been residing for a given amount of time.
The hotspot can be used for example for autohiding panels, where the panel is shown when the input hovers on the edge of the output for a specific amount of time.
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.