noosphere_common/
sync.rs

1#[allow(missing_docs)]
2#[cfg(not(target_arch = "wasm32"))]
3pub trait ConditionalSend: Send {}
4
5#[cfg(not(target_arch = "wasm32"))]
6impl<S> ConditionalSend for S where S: Send {}
7
8#[allow(missing_docs)]
9#[cfg(not(target_arch = "wasm32"))]
10pub trait ConditionalSync: Send + Sync {}
11
12#[cfg(not(target_arch = "wasm32"))]
13impl<S> ConditionalSync for S where S: Send + Sync {}
14
15#[allow(missing_docs)]
16#[cfg(target_arch = "wasm32")]
17pub trait ConditionalSend {}
18
19#[cfg(target_arch = "wasm32")]
20impl<S> ConditionalSend for S {}
21
22#[allow(missing_docs)]
23#[cfg(target_arch = "wasm32")]
24pub trait ConditionalSync {}
25
26#[cfg(target_arch = "wasm32")]
27impl<S> ConditionalSync for S {}