struct Spawner {
session_id: SessionId,
template: ProxySessionConfig,
router: Option<Arc<dyn Router>>,
observer: Arc<dyn ProxyObserver>,
hook: Arc<dyn ProxyHook>,
cancel: CancellationToken,
control: Arc<ControlPlane>,
}Expand description
What one client’s task needs from its proxy.
Fields§
§session_id: SessionId§template: ProxySessionConfig§router: Option<Arc<dyn Router>>§observer: Arc<dyn ProxyObserver>§hook: Arc<dyn ProxyHook>§cancel: CancellationToken§control: Arc<ControlPlane>Implementations§
Source§impl Spawner
impl Spawner
async fn run(self, request: ClientRequest)
fn route( &mut self, remote_address: SocketAddr, client: RouteClient<'_>, ) -> Result<ProxySessionConfig, Rejection>
fn session( &self, config: ProxySessionConfig, client_alpn: Vec<u8>, client_addr: SocketAddr, client_transport: &str, ) -> ProxySession
Auto Trait Implementations§
impl !RefUnwindSafe for Spawner
impl !UnwindSafe for Spawner
impl Freeze for Spawner
impl Send for Spawner
impl Sync for Spawner
impl Unpin for Spawner
impl UnsafeUnpin for Spawner
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