1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
use Future;
/// A trait representing types that may or may not require [`Send`].
///
/// Many async runtimes do not require [`Send`] for futures and streams. This trait
/// provides a way to represent types that may not require [`Send`]. Users can
/// switch the feature `no-send` at compile-time to disable the [`Send`] bound.
///
/// # Safety
///
/// Do not implement this trait directly. It is automatically implemented for all
/// types based on the feature flags.
pub unsafe
/// A trait representing types that may or may not require [`Send`].
///
/// When the `no-send` feature is enabled, this trait has no `Send` bound,
/// allowing use with single-threaded async runtimes.
///
/// # Safety
///
/// Do not implement this trait directly. It is automatically implemented for all types.
pub unsafe
unsafe
unsafe
/// A trait representing types that may or may not require [`Sync`].
///
/// Same as [`MaybeSend`], but for [`Sync`]. Users can switch the feature `no-send`
/// at compile-time to disable the [`Sync`] bound.
///
/// # Safety
///
/// Do not implement this trait directly. It is automatically implemented for all
/// types based on the feature flags.
pub unsafe
/// A trait representing types that may or may not require [`Sync`].
///
/// When the `no-send` feature is enabled, this trait has no `Sync` bound,
/// allowing use with single-threaded async runtimes.
///
/// # Safety
///
/// Do not implement this trait directly. It is automatically implemented for all types.
pub unsafe
unsafe
unsafe
/// A trait for determining whether the buffer is owned or borrowed.
///
/// Poll-based I/O operations require the buffer to be borrowed, while completion-based I/O
/// operations require the buffer to be owned. This trait provides a way to abstract over
/// the ownership of the buffer. Users can switch between poll-based and completion-based
/// I/O operations at compile-time by enabling or disabling the `completion-based` feature.
///
/// # Safety
///
/// Do not implement this trait manually. It is automatically implemented based on
/// the feature flags.
pub unsafe
unsafe
/// A trait for determining whether the buffer is owned or borrowed.
///
/// When the `completion-based` feature is enabled, this trait requires a `'static`
/// lifetime bound to ensure buffers can be safely used in completion-based I/O.
///
/// # Safety
///
/// Do not implement this trait manually. It is automatically implemented for all
/// types with a `'static` lifetime.
pub unsafe
unsafe
/// A trait representing futures that may or may not require [`Send`].
///
/// This trait combines [`Future`] with [`MaybeSend`], providing a convenient
/// bound for async functions that may or may not require `Send` based on
/// the feature flags.