[][src]Enum wayland_protocols::wlr::unstable::output_management::v1::server::zwlr_output_configuration_v1::Request

#[non_exhaustive]pub enum Request {
    EnableHead {
        id: Main<ZwlrOutputConfigurationHeadV1>,
        head: ZwlrOutputHeadV1,
    },
    DisableHead {
        head: ZwlrOutputHeadV1,
    },
    Apply,
    Test,
    Destroy,
}

Variants (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.
EnableHead

enable and configure a head

Enable a head. This request creates a head configuration object that can be used to change the head's properties.

Fields of EnableHead

id: Main<ZwlrOutputConfigurationHeadV1>head: ZwlrOutputHeadV1
DisableHead

disable a head

Disable a head.

Fields of DisableHead

head: ZwlrOutputHeadV1
Apply

apply the configuration

Apply the new output configuration.

In case the configuration is successfully applied, there is no guarantee that the new output state matches completely the requested configuration. For instance, a compositor might round the scale if it doesn't support fractional scaling.

After this request has been sent, the compositor must respond with an succeeded, failed or cancelled event. Sending a request that isn't the destructor is a protocol error.

Test

test the configuration

Test the new output configuration. The configuration won't be applied, but will only be validated.

Even if the compositor succeeds to test a configuration, applying it may fail.

After this request has been sent, the compositor must respond with an succeeded, failed or cancelled event. Sending a request that isn't the destructor is a protocol error.

Destroy

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 that have not been applied will be discarded.

This request also destroys wlr_output_configuration_head objects created via this object.

This is a destructor, once received this object cannot be used any longer.

Trait Implementations

impl Debug for Request[src]

impl MessageGroup for Request[src]

type Map = ResourceMap

The wrapper type for ObjectMap allowing the mapping of Object and NewId arguments to the object map during parsing. Read more

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.