pub struct ObjectRef {
pub id: ObjectId,
pub state: Vec<u8>,
pub lifecycle: ObjectState,
pub version: u64,
}Expand description
Object entry in the cache. Spec §B.6.
Fields§
§id: ObjectIdIdentity.
state: Vec<u8>CDR-encoded state bytes (caller serializes via XCDR2).
lifecycle: ObjectStateLifecycle state.
version: u64Version counter — incremented on every modify. Optimistic-concurrency check (Spec §B.7.4).
Trait Implementations§
impl Eq for ObjectRef
impl StructuralPartialEq for ObjectRef
Auto Trait Implementations§
impl Freeze for ObjectRef
impl RefUnwindSafe for ObjectRef
impl Send for ObjectRef
impl Sync for ObjectRef
impl Unpin for ObjectRef
impl UnsafeUnpin for ObjectRef
impl UnwindSafe for ObjectRef
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