pub enum PeerAddr {
IpSocket(NetworkProtocol, SocketAddr),
UnixSocket(String),
}Expand description
Address of a remote peer
Variants§
IpSocket(NetworkProtocol, SocketAddr)
UnixSocket(String)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PeerAddr
impl RefUnwindSafe for PeerAddr
impl Send for PeerAddr
impl Sync for PeerAddr
impl Unpin for PeerAddr
impl UnwindSafe for PeerAddr
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