pub struct NewConnection {
pub dst: SocketAddr,
pub from_smoltcp: Receiver<Bytes>,
pub to_smoltcp: Sender<Bytes>,
}Expand description
Information for spawning a proxy task for a newly established connection.
Returned by ConnectionTracker::take_new_connections(). The poll loop
passes this to the proxy task spawner.
Fields§
§dst: SocketAddrOriginal destination the guest was connecting to.
from_smoltcp: Receiver<Bytes>Receive data from smoltcp socket (guest → proxy task).
to_smoltcp: Sender<Bytes>Send data to smoltcp socket (proxy task → guest).
Auto Trait Implementations§
impl Freeze for NewConnection
impl RefUnwindSafe for NewConnection
impl Send for NewConnection
impl Sync for NewConnection
impl Unpin for NewConnection
impl UnsafeUnpin for NewConnection
impl UnwindSafe for NewConnection
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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