pub struct ConnectInfo<A = SocketAddr> {
pub local_addr: A,
pub remote_addr: A,
}
Fields§
§local_addr: A
Returns the local address of this connection.
remote_addr: A
Returns the remote (peer) address of this connection.
Implementations§
Source§impl<A> ConnectInfo<A>
impl<A> ConnectInfo<A>
Sourcepub fn local_addr(&self) -> &A
pub fn local_addr(&self) -> &A
Return the local address the IO resource is connected.
Sourcepub fn remote_addr(&self) -> &A
pub fn remote_addr(&self) -> &A
Return the remote address the IO resource is connected too.
Trait Implementations§
Source§impl<A: Clone> Clone for ConnectInfo<A>
impl<A: Clone> Clone for ConnectInfo<A>
Source§fn clone(&self) -> ConnectInfo<A>
fn clone(&self) -> ConnectInfo<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 moreAuto Trait Implementations§
impl<A> Freeze for ConnectInfo<A>where
A: Freeze,
impl<A> RefUnwindSafe for ConnectInfo<A>where
A: RefUnwindSafe,
impl<A> Send for ConnectInfo<A>where
A: Send,
impl<A> Sync for ConnectInfo<A>where
A: Sync,
impl<A> Unpin for ConnectInfo<A>where
A: Unpin,
impl<A> UnwindSafe for ConnectInfo<A>where
A: UnwindSafe,
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