pub struct ParsedDisplay {
    pub host: String,
    pub protocol: Option<String>,
    pub display: u16,
    pub screen: u16,
}
Expand description

A parsed X11 display string.

Fields

host: String

The hostname of the computer we nned to connect to.

This is an empty string if we are connecting to the local host.

protocol: Option<String>

The protocol we are communicating over.

This is None if the protocol may be determined automatically.

display: u16

The index of the display we are connecting to.

screen: u16

The index of the screen that we are using as the default screen.

Implementations

Get an iterator over ConnectAddresses from this parsed display for connecting to the server.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.