Expand description
A possible address for an X11 server.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Hostname(&'a str, u16)
Connect to this hostname and port over TCP.
Socket(PathBuf)
Connect to this Unix socket.
First, the given path should be attempted in the abstract namespace. Only if that fails, then the named socket with the given name should be tried.
Trait Implementations
sourceimpl<'a> Clone for ConnectAddress<'a>
impl<'a> Clone for ConnectAddress<'a>
sourcefn clone(&self) -> ConnectAddress<'a>
fn clone(&self) -> ConnectAddress<'a>
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<'a> Debug for ConnectAddress<'a>
impl<'a> Debug for ConnectAddress<'a>
sourceimpl<'a> PartialEq<ConnectAddress<'a>> for ConnectAddress<'a>
impl<'a> PartialEq<ConnectAddress<'a>> for ConnectAddress<'a>
sourcefn eq(&self, other: &ConnectAddress<'a>) -> bool
fn eq(&self, other: &ConnectAddress<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ConnectAddress<'a>) -> bool
fn ne(&self, other: &ConnectAddress<'a>) -> bool
This method tests for !=
.
impl<'a> Eq for ConnectAddress<'a>
impl<'a> StructuralEq for ConnectAddress<'a>
impl<'a> StructuralPartialEq for ConnectAddress<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ConnectAddress<'a>
impl<'a> Send for ConnectAddress<'a>
impl<'a> Sync for ConnectAddress<'a>
impl<'a> Unpin for ConnectAddress<'a>
impl<'a> UnwindSafe for ConnectAddress<'a>
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