crb_core/types/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Generic traits to easily represent different requirements
//! for types of messages.

pub mod slot;
pub mod uid;

pub use slot::*;
pub use uid::*;

/// A tag that can be sent between threads.
pub trait Tag: Send + 'static {}

impl<T: Send + 'static> Tag for T {}

/// A tag that can be sent between threads.
pub trait SyncTag: Sync + Send + 'static {}

impl<T: Sync + Send + 'static> SyncTag for T {}