Struct object_lib::object::ObjectHeader
source · pub(crate) struct ObjectHeader {
pub(crate) id: ObjectId,
pub(crate) version: ObjectVersion,
access_history: u8,
pub(crate) object_version_constraints: PHashMap<ObjectId, ObjectVersion>,
pub needs_allocator_reset: bool,
is_mv_enabled: bool,
}Fields§
§id: ObjectId§version: ObjectVersion§access_history: u8§object_version_constraints: PHashMap<ObjectId, ObjectVersion>§needs_allocator_reset: bool§is_mv_enabled: boolImplementations§
source§impl ObjectHeader
impl ObjectHeader
fn init(&mut self, id: ObjectId)
fn bump_version(&mut self) -> Result<ObjectVersion, ObjectOperationError>
fn reset_access_history(&mut self)
fn upsert_version_constraint( &mut self, foreign_object: ObjectId, observed_version: ObjectVersion ) -> Option<ObjectVersion>
fn get_version_constraint( &self, foreign_object: ObjectId ) -> Option<ObjectVersion>
fn set_mv_enabled(&mut self, enabled: bool)
fn is_mv_enabled(&self) -> bool
Trait Implementations§
source§impl Debug for ObjectHeader
impl Debug for ObjectHeader
source§impl Persistable for ObjectHeader
impl Persistable for ObjectHeader
source§impl PersistentlyAllocatable for ObjectHeader
impl PersistentlyAllocatable for ObjectHeader
fn set_allocator(&mut self, allocator: Arc<RwLock<BumpAllocator>>)
fn get_allocator(&self) -> Option<Arc<RwLock<BumpAllocator>>>
Auto Trait Implementations§
impl !RefUnwindSafe for ObjectHeader
impl Send for ObjectHeader
impl Sync for ObjectHeader
impl Unpin for ObjectHeader
impl !UnwindSafe for ObjectHeader
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more