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
29
30
31
32
33
34
35
36
37
38
39
40
41
#![warn(missing_docs)]
extern crate libc;
extern crate glib;
extern crate secret_sys;
mod secret_service;
mod secret_collection;
mod secret_item;
mod secret_value;
mod util;
pub use self::secret_sys as ffi;
pub use self::secret_service::SecretService;
pub use self::secret_collection::SecretCollection;
pub use self::secret_item::SecretItem;
pub use self::secret_value::SecretValue;
use glib::Error;
use glib::object::Wrapper;
pub type SecretResult<T> = Result<T, Error>;
pub trait Lock<T: Wrapper> {
fn lock(&self) -> SecretResult<Vec<T>>;
fn unlock(&self) -> SecretResult<Vec<T>>;
}