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§
source§impl 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§
source§impl Clone for ParsedDisplay
impl Clone for ParsedDisplay
source§fn clone(&self) -> ParsedDisplay
fn clone(&self) -> ParsedDisplay
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ParsedDisplay
impl Debug for ParsedDisplay
source§impl PartialEq for ParsedDisplay
impl PartialEq for ParsedDisplay
source§fn 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 ==
.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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more