Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/rt/bounds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ mod h2_common {

pub trait Http2UpgradedExec<B> {
#[doc(hidden)]
#[track_caller]
fn execute_upgrade(&self, fut: UpgradedSendStreamTask<B>);
}

Expand All @@ -26,6 +27,7 @@ mod h2_common {
where
E: Executor<UpgradedSendStreamTask<B>>,
{
#[track_caller]
fn execute_upgrade(&self, fut: UpgradedSendStreamTask<B>) {
self.execute(fut)
}
Expand Down Expand Up @@ -56,6 +58,7 @@ mod h2_client {
T: Read + Write + Unpin,
{
#[doc(hidden)]
#[track_caller]
fn execute_h2_future(&mut self, future: H2ClientFuture<B, T, Self>);
}

Expand All @@ -69,6 +72,7 @@ mod h2_client {
H2ClientFuture<B, T, E>: Future<Output = ()>,
T: Read + Write + Unpin,
{
#[track_caller]
fn execute_h2_future(&mut self, future: H2ClientFuture<B, T, E>) {
self.execute(future)
}
Expand Down Expand Up @@ -110,6 +114,7 @@ mod h2_server {
super::Http2UpgradedExec<B::Data> + sealed::Sealed<(F, B)> + Clone
{
#[doc(hidden)]
#[track_caller]
fn execute_h2stream(&mut self, fut: H2Stream<F, B, Self>);
}

Expand All @@ -122,6 +127,7 @@ mod h2_server {
H2Stream<F, B, E>: Future<Output = ()>,
B: Body,
{
#[track_caller]
fn execute_h2stream(&mut self, fut: H2Stream<F, B, E>) {
self.execute(fut)
}
Expand Down
1 change: 1 addition & 0 deletions src/rt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@ pub use self::timer::{Sleep, Timer};
/// ```
pub trait Executor<Fut> {
/// Place the future into the executor to be run.
#[track_caller]
fn execute(&self, fut: Fut);
}