Struct x11rb_protocol::parse_display::ParsedDisplay
source · [−]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
sourceimpl ParsedDisplay
impl ParsedDisplay
sourcepub fn connect_instruction(&self) -> impl Iterator<Item = ConnectAddress<'_>>
pub fn connect_instruction(&self) -> impl Iterator<Item = ConnectAddress<'_>>
Get an iterator over ConnectAddress
es from this parsed display for connecting
to the server.
Trait Implementations
sourceimpl Clone for ParsedDisplay
impl Clone for ParsedDisplay
sourcefn clone(&self) -> ParsedDisplay
fn clone(&self) -> ParsedDisplay
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ParsedDisplay
impl Debug for ParsedDisplay
sourceimpl PartialEq<ParsedDisplay> for ParsedDisplay
impl PartialEq<ParsedDisplay> for ParsedDisplay
sourcefn eq(&self, other: &ParsedDisplay) -> bool
fn eq(&self, other: &ParsedDisplay) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ParsedDisplay) -> bool
fn ne(&self, other: &ParsedDisplay) -> bool
This method tests for !=
.
impl Eq for ParsedDisplay
impl StructuralEq for ParsedDisplay
impl StructuralPartialEq for ParsedDisplay
Auto Trait Implementations
impl RefUnwindSafe for ParsedDisplay
impl Send for ParsedDisplay
impl Sync for ParsedDisplay
impl Unpin for ParsedDisplay
impl UnwindSafe for ParsedDisplay
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more