[][src]Type Definition breadx::display::DisplayConnection

type DisplayConnection = Display<NameConnection>;

A variant of Display that uses X11's default connection mechanisms to connect to the server. In most cases, you should be using this over any variant of Display.

Implementations

impl DisplayConnection[src]

pub fn create(
    name: Option<Cow<'_, str>>,
    auth_info: Option<AuthInfo>
) -> Result<Self>
[src]

Create a new connection to the X server, given an optional name and authorization information.

pub async fn create_async<'_>(
    name: Option<Cow<'_, str>>,
    auth_info: Option<AuthInfo>
) -> Result<Self>
[src]

Create a new connection to the X server, given an optional name and authorization information, async redox.