pub struct WaylandDisplay {
pub wl_compositor: Compositor,
/* private fields */
}Expand description
Wayland display server
Fields§
§wl_compositor: CompositorWayland compositor (surface management + compositing)
Implementations§
Source§impl WaylandDisplay
impl WaylandDisplay
Sourcepub fn connect_client(&self) -> Result<u32, KernelError>
pub fn connect_client(&self) -> Result<u32, KernelError>
Connect a new client
Sourcepub fn disconnect_client(&self, client_id: u32) -> Result<(), KernelError>
pub fn disconnect_client(&self, client_id: u32) -> Result<(), KernelError>
Disconnect client
Sourcepub fn process_message(
&self,
client_id: u32,
data: &[u8],
) -> Result<Vec<u8>, KernelError>
pub fn process_message( &self, client_id: u32, data: &[u8], ) -> Result<Vec<u8>, KernelError>
Process client message through the wire protocol parser.