1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use types::Dictionary;

/// Options passed to [`notify()`](crate::notify). Currently unused.
#[derive(Clone, Debug, Default)]
pub struct NotifyOpts {}

impl NotifyOpts {
    #[inline(always)]
    pub fn builder() -> NotifyOptsBuilder {
        NotifyOptsBuilder::default()
    }
}

#[derive(Clone, Default)]
pub struct NotifyOptsBuilder(NotifyOpts);

impl NotifyOptsBuilder {
    #[inline]
    pub fn build(&mut self) -> NotifyOpts {
        std::mem::take(&mut self.0)
    }
}

impl From<&NotifyOpts> for Dictionary {
    fn from(_: &NotifyOpts) -> Self {
        Dictionary::new()
    }
}