matrix-bridge-teams 0.1.0

A bridge between Matrix and Microsoft Teams written in Rust
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::marker::PhantomData;
use std::time::Duration;

pub struct AsyncTimedCache<T> {
    ttl: Duration,
    _marker: PhantomData<T>,
}

impl<T: Clone + Send + Sync + 'static> AsyncTimedCache<T> {
    pub fn new(ttl: Duration) -> Self {
        Self {
            ttl,
            _marker: PhantomData,
        }
    }
}