Function x11rb::connect[][src]

pub fn connect(
    dpy_name: Option<&str>
) -> Result<(impl Connection + Send + Sync, usize), ConnectError>

Establish a new connection to an X11 server.

If a dpy_name is provided, it describes the display that should be connected to, for example 127.0.0.1:1. If no value is provided, the $DISPLAY environment variable is used.