1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use crate::Href;

/// Event yielded when monitoring a storage.
pub enum Event {
    /// Details of the specific are known.
    Specific(SpecificEvent),
    /// No details are known; only that something has changed.
    General,
}

pub struct SpecificEvent {
    pub href: Href,
    pub kind: EventKind,
}

pub enum EventKind {
    Create,
    Update,
    Delete,
    Property { name: String },
    Unknown,
}