pub struct ObjectInstance {
pub kind: ObjectKind,
pub variant: ObjectVariant,
pub version: u32,
}Expand description
Eine im Store registrierte Object-Instance.
Fields§
§kind: ObjectKindObject-Kind (4-bit, gespiegelt aus der ObjectId).
variant: ObjectVariantAktuelle Wire-Repraesentation der Object-Daten.
version: u32Versionszaehler — wird bei Replace inkrementiert.
Implementations§
Source§impl ObjectInstance
impl ObjectInstance
Sourcepub fn new(kind: ObjectKind, variant: ObjectVariant) -> Self
pub fn new(kind: ObjectKind, variant: ObjectVariant) -> Self
Konstruktor.
Trait Implementations§
Source§impl Clone for ObjectInstance
impl Clone for ObjectInstance
Source§fn clone(&self) -> ObjectInstance
fn clone(&self) -> ObjectInstance
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 ObjectInstance
impl Debug for ObjectInstance
Source§impl PartialEq for ObjectInstance
impl PartialEq for ObjectInstance
Source§fn eq(&self, other: &ObjectInstance) -> bool
fn eq(&self, other: &ObjectInstance) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ObjectInstance
impl StructuralPartialEq for ObjectInstance
Auto Trait Implementations§
impl Freeze for ObjectInstance
impl RefUnwindSafe for ObjectInstance
impl Send for ObjectInstance
impl Sync for ObjectInstance
impl Unpin for ObjectInstance
impl UnsafeUnpin for ObjectInstance
impl UnwindSafe for ObjectInstance
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