pub struct ClientConnectionProcessor<C: Connection> { /* private fields */ }Expand description
Processes a single client connection, handling authentication and tunnel management.
This struct manages the lifecycle of a client connection after it has been accepted by the server. It performs authentication, sets up tunnel handlers for streams and datagrams, and manages the connection until it closes.
Implementations§
Source§impl<C: Connection> ClientConnectionProcessor<C>
impl<C: Connection> ClientConnectionProcessor<C>
Sourcepub async fn handle<A>(
connection: C,
authenticator: &A,
config: Arc<ConnectionConfig>,
) -> Result<()>where
A: Authenticator<C>,
pub async fn handle<A>(
connection: C,
authenticator: &A,
config: Arc<ConnectionConfig>,
) -> Result<()>where
A: Authenticator<C>,
Handles a new client connection from authentication through tunnel setup.
This method:
- Performs the authentication
- Notifies the authenticator that the connection is accepted
- Sets up and runs tunnel loops for streams and datagrams
Auto Trait Implementations§
impl<C> Freeze for ClientConnectionProcessor<C>
impl<C> RefUnwindSafe for ClientConnectionProcessor<C>where
C: RefUnwindSafe,
impl<C> Send for ClientConnectionProcessor<C>
impl<C> Sync for ClientConnectionProcessor<C>
impl<C> Unpin for ClientConnectionProcessor<C>
impl<C> UnsafeUnpin for ClientConnectionProcessor<C>
impl<C> UnwindSafe for ClientConnectionProcessor<C>where
C: RefUnwindSafe,
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