Enum wayland_protocols::wlr::unstable::screencopy::v1::client::zwlr_screencopy_frame_v1::Request [−][src]
#[non_exhaustive]
pub enum Request {
Copy {
buffer: WlBuffer,
},
Destroy,
CopyWithDamage {
buffer: WlBuffer,
},
}
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Copy
Fields
buffer: WlBuffer
copy the frame
Copy the frame to the supplied buffer. The buffer must have a the correct size, see zwlr_screencopy_frame_v1.buffer and zwlr_screencopy_frame_v1.linux_dmabuf. The buffer needs to have a supported format.
If the frame is successfully copied, a “flags” and a “ready” events are sent. Otherwise, a “failed” event is sent.
Destroy
delete this object, used or not
Destroys the frame. This request can be sent at any time by the client.
This is a destructor, once sent this object cannot be used any longer.
CopyWithDamage
Fields
buffer: WlBuffer
copy the frame when it’s damaged
Same as copy, except it waits until there is damage to copy.
Only available since version 2 of the interface
Trait Implementations
Wire representation of this MessageGroup
The wrapper type for ObjectMap allowing the mapping of Object and NewId arguments to the object map during parsing. Read more
Whether this message is a destructor Read more
Retrieve the child Object
associated with this message if any
Construct a message from its raw representation
unsafe fn from_raw_c(
obj: *mut c_void,
opcode: u32,
args: *const wl_argument
) -> Result<Request, ()>
unsafe fn from_raw_c(
obj: *mut c_void,
opcode: u32,
args: *const wl_argument
) -> Result<Request, ()>
Construct a message of this group from its C representation Read more
Build a C representation of this message Read more