Function runa_core::wayland_listener
source · pub fn wayland_listener(
display: &str
) -> Result<(UnixListener, FlockGuard), ListenerError>
Expand description
Create a UnixListener
for accepting incoming connections from wayland
clients.
The path of the socket is determined by the display
argument, as specified
by the wayland specification. This function also creates a lock file for the
socket. The lock file is used to prevent multiple compositor instances from
trying to use the same socket. The lock file is unlocked when the returned
FlockGuard
is dropped.