pub struct ConnectionManager { /* private fields */ }Expand description
Creates and holds EstablishedConnections in a VecDeque.
Implementations§
Source§impl ConnectionManager
impl ConnectionManager
Sourcepub async fn new_connection(
&self,
timing: ConnectionTiming,
remote_addr: SocketAddr,
domain: String,
conn_type: ConnectionType,
io: Box<dyn ByteStream>,
time: &dyn Time,
shutdown: CancellationToken,
) -> Result<Arc<RwLock<EstablishedConnection>>>
pub async fn new_connection( &self, timing: ConnectionTiming, remote_addr: SocketAddr, domain: String, conn_type: ConnectionType, io: Box<dyn ByteStream>, time: &dyn Time, shutdown: CancellationToken, ) -> Result<Arc<RwLock<EstablishedConnection>>>
Creates a new connection on the given io.
Trait Implementations§
Source§impl Debug for ConnectionManager
impl Debug for ConnectionManager
Auto Trait Implementations§
impl !Freeze for ConnectionManager
impl !RefUnwindSafe for ConnectionManager
impl !UnwindSafe for ConnectionManager
impl Send for ConnectionManager
impl Sync for ConnectionManager
impl Unpin for ConnectionManager
impl UnsafeUnpin for ConnectionManager
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