Enum wayland_protocols::xwayland::shell::v1::client::xwayland_surface_v1::Request
source · #[non_exhaustive]pub enum Request {
SetSerial {
serial_lo: u32,
serial_hi: u32,
},
Destroy,
}
staging
and client
only.Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SetSerial
Fields
associates a Xwayland window to a wl_surface
Associates an Xwayland window to a wl_surface. The association state is double-buffered and will be applied at the time wl_surface.commit of the corresponding wl_surface is called.
The serial_lo
and serial_hi
parameters specify a non-zero
monotonic serial number which is entirely unique and provided by the
Xwayland server equal to the serial value provided by a client message
with a message type of the WL_SURFACE_SERIAL
atom on the X11 window
for this surface to be associated to.
The serial value in the WL_SURFACE_SERIAL
client message is specified
as having the lo-bits specified in l[0]
and the hi-bits specified
in l[1]
.
If the serial value provided by serial_lo
and serial_hi
is not
valid, the invalid_serial
protocol error will be raised.
An X11 window may be associated with multiple surfaces throughout its lifespan. (eg. unmapping and remapping a window).
For each wl_surface, this state must not be committed more than once,
otherwise the already_associated
protocol error will be raised.
Destroy
destroy the Xwayland surface object
Destroy the xwayland_surface_v1 object.
Any already existing associations are unaffected by this action.
This is a destructor, once sent 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
§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>) -> 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.