rainmaker-components 0.1.0

Component abstractions for rainmaker
Documentation
1
2
3
4
5
6
7
8
9
#![allow(unused)]
// utility types and functions for using throughout the crate
use std::sync::{Arc, Mutex};

pub type WrappedInArcMutex<T> = Arc<Mutex<T>>;

pub fn wrap_in_arc_mutex<T>(inp: T) -> WrappedInArcMutex<T> {
    Arc::new(Mutex::new(inp))
}