pub struct ConnectionInfo<R: Remote> {
pub remote: R,
pub local_addr: SocketAddr,
pub peer_addr: SocketAddr,
}
Expand description
Plain struct used as a returned value of Remote::connect_with()
Fields§
§remote: R
The new created remote resource
local_addr: SocketAddr
Local address of the interal resource used.
peer_addr: SocketAddr
Peer address of the interal resource used.
Auto Trait Implementations§
impl<R> Freeze for ConnectionInfo<R>where
R: Freeze,
impl<R> RefUnwindSafe for ConnectionInfo<R>where
R: RefUnwindSafe,
impl<R> Send for ConnectionInfo<R>
impl<R> Sync for ConnectionInfo<R>
impl<R> Unpin for ConnectionInfo<R>where
R: Unpin,
impl<R> UnwindSafe for ConnectionInfo<R>where
R: 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