aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/object/src/value.rs15
-rw-r--r--common/src/user.rs1
2 files changed, 16 insertions, 0 deletions
diff --git a/common/object/src/value.rs b/common/object/src/value.rs
index 83878d3..cf6dad2 100644
--- a/common/object/src/value.rs
+++ b/common/object/src/value.rs
@@ -175,3 +175,18 @@ impl ValueStore for &[u8] {
self.len()
}
}
+impl<'a> Value<'a> for () {
+ const ALIGNED: bool = true;
+ fn load_aligned(_buf: &'a [u32]) -> Option<Self> {
+ Some(())
+ }
+}
+impl ValueStore for () {
+ fn is_aligned(&self) -> bool {
+ true
+ }
+ fn store_aligned(&self, _buf: &mut Vec<u32>) {}
+ fn size(&self) -> usize {
+ 0
+ }
+}
diff --git a/common/src/user.rs b/common/src/user.rs
index 1509eb4..f4aaa0b 100644
--- a/common/src/user.rs
+++ b/common/src/user.rs
@@ -10,4 +10,5 @@ fields! {
USER_LOGIN: &str = 0x1001 "login";
USER_PASSWORD: &str = 0x1002 "password";
USER_NAME: &str = 0x1003 "name";
+ USER_ADMIN: () = 0x1004 "admin";
}