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§fn size_hint(depth: usize) -> (usize, Option<usize>)
 
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an 
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
    depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
 
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an 
Unstructured this type
needs to construct itself. Read moreSource§impl AsSerializeArg for ObjectId
 
impl AsSerializeArg for ObjectId
type SerializeArg<'a> = ObjectId
fn as_serialize_arg<'a>(&'a self) -> Self::SerializeArg<'a>where
    Self: 'a,
Source§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 Introspectable for ObjectId
 
impl Introspectable for ObjectId
fn layout() -> Layout
fn lexical_id() -> LexicalId
fn add_references(_references: &mut References<'_>)
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