1
0

collect_garbage() for tuic_quinn::Connection

This commit is contained in:
EAimTY 2023-01-27 00:42:23 +09:00
parent fc6444f86e
commit 823ae55024

View File

@ -8,6 +8,7 @@ use std::{
io::Error as IoError,
pin::Pin,
task::{Context, Poll},
time::Duration,
};
use thiserror::Error;
use tuic::{
@ -98,6 +99,10 @@ impl<'conn, Side> Connection<'conn, Side> {
}
}
pub fn collect_garbage(&self, timeout: Duration) {
self.model.collect_garbage(timeout);
}
async fn accept_packet_quic(
&self,
model: PacketModel<Rx, Bytes>,