pub struct Peer<P = StandardTcpProtocols>where
P: ApplicationProtocols,{
pub address: SocketAddr,
pub secure: bool,
pub protocol: P,
}
Expand description
A connected network peer.
Fields§
§address: SocketAddr
The remote address of the peer.
secure: bool
If true, the connection is secured with TLS.
protocol: P
The application protocol to use for this connection.
Trait Implementations§
Auto Trait Implementations§
impl<P> RefUnwindSafe for Peer<P>where
P: RefUnwindSafe,
impl<P> Send for Peer<P>
impl<P> Sync for Peer<P>
impl<P> Unpin for Peer<P>where
P: Unpin,
impl<P> UnwindSafe for Peer<P>where
P: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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