lenso-platform-runtime 0.1.0

Runtime function primitives for the Lenso backend framework.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct QueueName(pub &'static str);

#[derive(Debug, Clone)]
pub struct Queue {
    pub name: QueueName,
    pub concurrency: usize,
}

impl Queue {
    pub fn new(name: &'static str, concurrency: usize) -> Self {
        Self {
            name: QueueName(name),
            concurrency,
        }
    }
}