Debian Codegraph @

third_party/rust/tokio/src/util/markers.rs

raw
1 /// Marker for types that are `Sync` but not `Send`
2 #[allow(dead_code)]
3 pub(crate) struct SyncNotSend(#[allow(dead_code)] *mut ());
4
5 unsafe impl Sync for SyncNotSend {}
6
7 cfg_rt! {
8 pub(crate) struct NotSendOrSync(#[allow(dead_code)] *mut ());
9 }