collect_garbage()
for tuic_quinn::Connection
This commit is contained in:
parent
fc6444f86e
commit
823ae55024
@ -8,6 +8,7 @@ use std::{
|
|||||||
io::Error as IoError,
|
io::Error as IoError,
|
||||||
pin::Pin,
|
pin::Pin,
|
||||||
task::{Context, Poll},
|
task::{Context, Poll},
|
||||||
|
time::Duration,
|
||||||
};
|
};
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
use tuic::{
|
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(
|
async fn accept_packet_quic(
|
||||||
&self,
|
&self,
|
||||||
model: PacketModel<Rx, Bytes>,
|
model: PacketModel<Rx, Bytes>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user