pub struct WeakObjectRef {
pub id: ObjectId,
pub expected_version: u64,
}Expand description
Weak reference to an object in the cache. Spec §B.6.4.
Fields§
§id: ObjectIdObject identity.
expected_version: u64Expected version (caller can check whether the object has been changed in the meantime).
Implementations§
Source§impl WeakObjectRef
impl WeakObjectRef
Trait Implementations§
Source§impl Clone for WeakObjectRef
impl Clone for WeakObjectRef
Source§fn clone(&self) -> WeakObjectRef
fn clone(&self) -> WeakObjectRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WeakObjectRef
impl Debug for WeakObjectRef
impl Eq for WeakObjectRef
Source§impl PartialEq for WeakObjectRef
impl PartialEq for WeakObjectRef
Source§fn eq(&self, other: &WeakObjectRef) -> bool
fn eq(&self, other: &WeakObjectRef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WeakObjectRef
Auto Trait Implementations§
impl Freeze for WeakObjectRef
impl RefUnwindSafe for WeakObjectRef
impl Send for WeakObjectRef
impl Sync for WeakObjectRef
impl Unpin for WeakObjectRef
impl UnsafeUnpin for WeakObjectRef
impl UnwindSafe for WeakObjectRef
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