Struct aldrin_core::ObjectId
source · pub struct ObjectId {
pub uuid: ObjectUuid,
pub cookie: ObjectCookie,
}Expand description
Id of an object.
ObjectIds consist of two parts:
- An
ObjectUuid, identifying the object on the bus - An
ObjectCookie, a random UUID chosen by the broker
It is important to point out, that when an object is destroyed and later created again with the
same ObjectUuid, then the ObjectCookie and consequently the ObjectId will be
different.
Fields§
§uuid: ObjectUuidUUID of the object.
Cookie of the object.
Implementations§
source§impl ObjectId
impl ObjectId
sourcepub const fn new(uuid: ObjectUuid, cookie: ObjectCookie) -> Self
pub const fn new(uuid: ObjectUuid, cookie: ObjectCookie) -> Self
Creates a new ObjectId from an ObjectUuid and ObjectCookie.
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for ObjectId
impl<'arbitrary> Arbitrary<'arbitrary> for ObjectId
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moresource§impl Deserialize for ObjectId
impl Deserialize for ObjectId
fn deserialize( deserializer: Deserializer<'_, '_> ) -> Result<Self, DeserializeError>
source§impl Ord for ObjectId
impl Ord for ObjectId
source§impl PartialEq for ObjectId
impl PartialEq for ObjectId
source§impl PartialOrd for ObjectId
impl PartialOrd for ObjectId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for ObjectId
impl Serialize for ObjectId
fn serialize(&self, serializer: Serializer<'_>) -> Result<(), SerializeError>
impl Copy for ObjectId
impl Eq for ObjectId
impl StructuralEq for ObjectId
impl StructuralPartialEq for ObjectId
Auto Trait Implementations§
impl RefUnwindSafe for ObjectId
impl Send for ObjectId
impl Sync for ObjectId
impl Unpin for ObjectId
impl UnwindSafe for ObjectId
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