pub enum BraidAddr {
Tcp(SocketAddr),
Duplex,
Unix(UnixAddr),
}Available on crate feature
stream only.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 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§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.Source§impl<R> FirstAddrExt for R
impl<R> FirstAddrExt for R
Source§fn first_addr(self) -> FirstAddrResolver<Self>where
Self: Sized,
fn first_addr(self) -> FirstAddrResolver<Self>where
Self: Sized,
Available on crate feature
client only.Convert this resolver into a
FirstAddrResolver. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.