rainmaker 0.1.1

Rust Implementation of ESP RainMaker Agent.
Documentation
1
2
3
4
5
6
7
8
9
// utility types and functions for using throughout the crate
use std::sync::{Arc, Mutex};

pub(crate) type WrappedInArcMutex<T> = Arc<Mutex<T>>;

#[allow(dead_code)]
pub(crate) fn wrap_in_arc_mutex<T>(inp: T) -> WrappedInArcMutex<T> {
    Arc::new(Mutex::new(inp))
}