#[non_exhaustive]pub enum ConnectAddress<'a> {
Hostname(&'a str, u16),
Socket(String),
}
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(String)
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§
source§impl<'a> Clone for ConnectAddress<'a>
impl<'a> Clone for ConnectAddress<'a>
source§fn clone(&self) -> ConnectAddress<'a>
fn clone(&self) -> ConnectAddress<'a>
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<'a> Debug for ConnectAddress<'a>
impl<'a> Debug for ConnectAddress<'a>
source§impl<'a> PartialEq for ConnectAddress<'a>
impl<'a> PartialEq for ConnectAddress<'a>
impl<'a> Eq for ConnectAddress<'a>
impl<'a> StructuralPartialEq for ConnectAddress<'a>
Auto Trait Implementations§
impl<'a> Freeze for ConnectAddress<'a>
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§
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
)