Enum hyperdriver::info::BraidAddr
source · pub enum BraidAddr {
Tcp(SocketAddr),
Duplex,
Unix(UnixAddr),
}Expand description
A socket address for a Braid stream.
Supports more than just network socket addresses, also support Unix socket addresses (paths) and unnamed Duplex and Unix socket connections.
Variants§
Tcp(SocketAddr)
A TCP socket address.
Duplex
Represents a duplex connection which has no address.
Unix(UnixAddr)
A Unix socket address.
Implementations§
Trait Implementations§
source§impl From<DuplexAddr> for BraidAddr
impl From<DuplexAddr> for BraidAddr
source§fn from(_: DuplexAddr) -> Self
fn from(_: DuplexAddr) -> Self
Converts to this type from the input type.
source§impl From<SocketAddr> for BraidAddr
impl From<SocketAddr> for BraidAddr
source§fn from(addr: SocketAddr) -> Self
fn from(addr: SocketAddr) -> Self
Converts to this type from the input type.
source§impl From<Utf8PathBuf> for BraidAddr
impl From<Utf8PathBuf> for BraidAddr
source§fn from(addr: Utf8PathBuf) -> Self
fn from(addr: Utf8PathBuf) -> Self
Converts to this type from the input type.
source§impl PartialEq for BraidAddr
impl PartialEq for BraidAddr
source§impl TryFrom<SocketAddr> for BraidAddr
impl TryFrom<SocketAddr> for BraidAddr
impl Eq for BraidAddr
impl StructuralPartialEq for BraidAddr
Auto Trait Implementations§
impl Freeze for BraidAddr
impl RefUnwindSafe for BraidAddr
impl Send for BraidAddr
impl Sync for BraidAddr
impl Unpin for BraidAddr
impl UnwindSafe for BraidAddr
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.