From d6a581e69f04391585d97a4ee4bf3b2f68790be5 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 4 Mar 2016 20:30:12 +0100 Subject: [PATCH] Add HookPosition enum --- libimagstore/src/hook/mod.rs | 1 + libimagstore/src/hook/position.rs | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 libimagstore/src/hook/position.rs diff --git a/libimagstore/src/hook/mod.rs b/libimagstore/src/hook/mod.rs index ac8c7c89..6a9bb357 100644 --- a/libimagstore/src/hook/mod.rs +++ b/libimagstore/src/hook/mod.rs @@ -8,6 +8,7 @@ use store::FileLockEntry; pub mod accessor; pub mod aspect; pub mod error; +pub mod position; pub mod result; use hook::accessor::HookDataAccessorProvider; diff --git a/libimagstore/src/hook/position.rs b/libimagstore/src/hook/position.rs new file mode 100644 index 00000000..be289818 --- /dev/null +++ b/libimagstore/src/hook/position.rs @@ -0,0 +1,13 @@ +#[derive(Debug)] +pub enum HookPosition { + PreRead, + PostRead, + PreCreate, + PostCreate, + PreRetrieve, + PostRetrieve, + PreUpdate, + PostUpdate, + PreDelete, + PostDelete, +}