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
impl Eq for ParsedDisplay
impl StructuralPartialEq for ParsedDisplay
Auto Trait Implementations§
impl Freeze for ParsedDisplay
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)