wasmer_wasix/runners/dproxy/
instance.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::{
    sync::{Arc, Mutex},
    time::Instant,
};

use hyper_util::client::legacy::Client;

use super::{hyper_proxy::HyperProxyConnector, socket_manager::SocketManager};

#[derive(Debug, Clone)]
pub struct DProxyInstance {
    #[allow(unused)]
    pub(super) last_used: Arc<Mutex<Instant>>,
    #[allow(unused)]
    pub(super) socket_manager: Arc<SocketManager>,
    pub(super) client: Client<HyperProxyConnector, hyper::body::Incoming>,
}