Struct wayland_protocols_wlr::output_management::v1::server::zwlr_output_configuration_v1::ZwlrOutputConfigurationV1
source · pub struct ZwlrOutputConfigurationV1 { /* private fields */ }
server
only.Expand description
output configuration
This object is used by the client to describe a full output configuration.
First, the client needs to setup the output configuration. Each head can be either enabled (and configured) or disabled. It is a protocol error to send two enable_head or disable_head requests with the same head. It is a protocol error to omit a head in a configuration.
Then, the client can apply or test the configuration. The compositor will then reply with a succeeded, failed or cancelled event. Finally the client should destroy the configuration object.
See also the Request enum for this interface.
Implementations§
source§impl ZwlrOutputConfigurationV1
impl ZwlrOutputConfigurationV1
sourcepub fn succeeded(&self)
pub fn succeeded(&self)
configuration changes succeeded
Sent after the compositor has successfully applied the changes or tested them.
Upon receiving this event, the client should destroy this object.
If the current configuration has changed, events to describe the changes will be sent followed by a wlr_output_manager.done event.
sourcepub fn failed(&self)
pub fn failed(&self)
configuration changes failed
Sent if the compositor rejects the changes or failed to apply them. The compositor should revert any changes made by the apply request that triggered this event.
Upon receiving this event, the client should destroy this object.
sourcepub fn cancelled(&self)
pub fn cancelled(&self)
configuration has been cancelled
Sent if the compositor cancels the configuration because the state of an output changed and the client has outdated information (e.g. after an output has been hotplugged).
The client can create a new configuration with a newer serial and try again.
Upon receiving this event, the client should destroy this object.
Trait Implementations§
source§impl Borrow<ObjectId> for ZwlrOutputConfigurationV1
impl Borrow<ObjectId> for ZwlrOutputConfigurationV1
source§impl Clone for ZwlrOutputConfigurationV1
impl Clone for ZwlrOutputConfigurationV1
source§fn clone(&self) -> ZwlrOutputConfigurationV1
fn clone(&self) -> ZwlrOutputConfigurationV1
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ZwlrOutputConfigurationV1
impl Debug for ZwlrOutputConfigurationV1
source§impl Hash for ZwlrOutputConfigurationV1
impl Hash for ZwlrOutputConfigurationV1
source§impl PartialEq<Weak<ZwlrOutputConfigurationV1>> for ZwlrOutputConfigurationV1
impl PartialEq<Weak<ZwlrOutputConfigurationV1>> for ZwlrOutputConfigurationV1
source§impl PartialEq<ZwlrOutputConfigurationV1> for ZwlrOutputConfigurationV1
impl PartialEq<ZwlrOutputConfigurationV1> for ZwlrOutputConfigurationV1
source§fn eq(&self, other: &ZwlrOutputConfigurationV1) -> bool
fn eq(&self, other: &ZwlrOutputConfigurationV1) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Resource for ZwlrOutputConfigurationV1
impl Resource for ZwlrOutputConfigurationV1
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 ZwlrOutputConfigurationV1
Auto Trait Implementations§
impl !RefUnwindSafe for ZwlrOutputConfigurationV1
impl Send for ZwlrOutputConfigurationV1
impl Sync for ZwlrOutputConfigurationV1
impl Unpin for ZwlrOutputConfigurationV1
impl !UnwindSafe for ZwlrOutputConfigurationV1
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
§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>
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>
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.