s2n-quic-dc 0.46.0

Internal crate used by s2n-quic
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

use crate::stream::{recv, send};
use std::sync::Arc;

#[cfg(feature = "tokio")]
pub mod tokio;

pub type ArcHandle = Arc<dyn Handle>;

pub trait Handle: 'static + Send + Sync {
    fn spawn_recv_shutdown(&self, shutdown: recv::application::Shutdown);
    fn spawn_send_shutdown(&self, shutdown: send::application::Shutdown);
}