pub struct OrgKdeKwinDpms { /* private fields */ }
Expand description
Dpms for a wl_output
This interface provides information about the VESA DPMS state for a wl_output. It gets created through the request get on the org_kde_kwin_dpms_manager interface.
On creating the resource the server will push whether DPSM is supported for the output, the currently used DPMS state and notifies the client through the done event once all states are pushed. Whenever a state changes the set of changes is committed with the done event.
See also the Request enum for this interface.
Implementations§
Source§impl OrgKdeKwinDpms
impl OrgKdeKwinDpms
Sourcepub fn supported(&self, supported: u32)
pub fn supported(&self, supported: u32)
Event indicating whether DPMS is supported on the wl_output
This event gets pushed on binding the resource and indicates whether the wl_output supports DPMS. There are operation modes of a Wayland server where DPMS might not make sense (e.g. nested compositors).
Sourcepub fn mode(&self, mode: u32)
pub fn mode(&self, mode: u32)
Event indicating used DPMS mode
This mode gets pushed on binding the resource and provides the currently used DPMS mode. It also gets pushed if DPMS is not supported for the wl_output, in that case the value will be On.
The event is also pushed whenever the state changes.
Trait Implementations§
Source§impl Borrow<ObjectId> for OrgKdeKwinDpms
impl Borrow<ObjectId> for OrgKdeKwinDpms
Source§impl Clone for OrgKdeKwinDpms
impl Clone for OrgKdeKwinDpms
Source§fn clone(&self) -> OrgKdeKwinDpms
fn clone(&self) -> OrgKdeKwinDpms
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OrgKdeKwinDpms
impl Debug for OrgKdeKwinDpms
Source§impl Hash for OrgKdeKwinDpms
impl Hash for OrgKdeKwinDpms
Source§impl PartialEq<Weak<OrgKdeKwinDpms>> for OrgKdeKwinDpms
impl PartialEq<Weak<OrgKdeKwinDpms>> for OrgKdeKwinDpms
Source§impl PartialEq for OrgKdeKwinDpms
impl PartialEq for OrgKdeKwinDpms
Source§impl Resource for OrgKdeKwinDpms
impl Resource for OrgKdeKwinDpms
Source§fn object_data(&self) -> Option<&Arc<dyn Any + Send + Sync>>
fn object_data(&self) -> Option<&Arc<dyn Any + Send + Sync>>
Source§fn handle(&self) -> &WeakHandle
fn handle(&self) -> &WeakHandle
Source§fn from_id(conn: &DisplayHandle, id: ObjectId) -> Result<Self, InvalidId>
fn from_id(conn: &DisplayHandle, id: ObjectId) -> Result<Self, InvalidId>
Source§fn send_event(&self, evt: Self::Event<'_>) -> Result<(), InvalidId>
fn send_event(&self, evt: Self::Event<'_>) -> Result<(), InvalidId>
Source§fn parse_request(
conn: &DisplayHandle,
msg: Message<ObjectId, OwnedFd>,
) -> Result<(Self, Self::Request), DispatchError>
fn parse_request( conn: &DisplayHandle, msg: Message<ObjectId, OwnedFd>, ) -> Result<(Self, Self::Request), DispatchError>
Source§fn write_event<'a>(
&self,
conn: &DisplayHandle,
msg: Self::Event<'a>,
) -> Result<Message<ObjectId, BorrowedFd<'a>>, InvalidId>
fn write_event<'a>( &self, conn: &DisplayHandle, msg: Self::Event<'a>, ) -> Result<Message<ObjectId, BorrowedFd<'a>>, InvalidId>
Source§fn is_alive(&self) -> bool
fn is_alive(&self) -> bool
impl Eq for OrgKdeKwinDpms
Auto Trait Implementations§
impl Freeze for OrgKdeKwinDpms
impl !RefUnwindSafe for OrgKdeKwinDpms
impl Send for OrgKdeKwinDpms
impl Sync for OrgKdeKwinDpms
impl Unpin for OrgKdeKwinDpms
impl !UnwindSafe for OrgKdeKwinDpms
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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
.§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
.§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.§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.