Function wayland_client::connect_to [] [src]

pub fn connect_to(name: &OsStr) -> Result<(WlDisplay, EventQueue), ConnectError>

Connect to the compositor socket

Attempt to connect to a Wayland compositor on a given socket name

On success, returns the display object, as well as the default event iterator associated with it.