Struct aldrin_core::ObjectId
source · pub struct ObjectId {
pub uuid: ObjectUuid,
pub cookie: ObjectCookie,
}
Expand description
Id of an object.
ObjectId
s 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: ObjectUuid
UUID 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<'de> Deserialize<'de> for ObjectId
impl<'de> Deserialize<'de> for ObjectId
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§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 PartialOrd for ObjectId
impl PartialOrd for ObjectId
source§impl Serialize for ObjectId
impl Serialize for ObjectId
fn serialize(&self, serializer: Serializer<'_>) -> Result<(), SerializeError>
impl Copy for ObjectId
impl Eq for ObjectId
impl StructuralPartialEq for ObjectId
Auto Trait Implementations§
impl Freeze for ObjectId
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)