Struct aldrin_core::ServiceId
source · pub struct ServiceId {
pub object_id: ObjectId,
pub uuid: ServiceUuid,
pub cookie: ServiceCookie,
}
Expand description
Id of a service.
A ServiceId
consists of three parts:
- An
ObjectId
, identifying the associated object on the bus - A
ServiceUuid
, identifying the service of the object - A
ServiceCookie
, a random UUID chosen by the broker
It is important to point out, that when a service is destroyed and later created again with the
same ServiceUuid
, then the ServiceCookie
and consequently the ServiceId
will be
different.
Fields§
§object_id: ObjectId
Id of the associated object.
uuid: ServiceUuid
UUID of the service.
Cookie of the service.
Implementations§
source§impl ServiceId
impl ServiceId
sourcepub const fn new(
object_id: ObjectId,
uuid: ServiceUuid,
cookie: ServiceCookie
) -> Self
pub const fn new( object_id: ObjectId, uuid: ServiceUuid, cookie: ServiceCookie ) -> Self
Creates a new ServiceId
from an ObjectId
, a ServiceUuid
and a ServiceCookie
.
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for ServiceId
impl<'arbitrary> Arbitrary<'arbitrary> for ServiceId
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 ServiceId
impl Deserialize for ServiceId
fn deserialize( deserializer: Deserializer<'_, '_> ) -> Result<Self, DeserializeError>
source§impl Ord for ServiceId
impl Ord for ServiceId
source§impl PartialEq for ServiceId
impl PartialEq for ServiceId
source§impl PartialOrd for ServiceId
impl PartialOrd for ServiceId
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 ServiceId
impl Serialize for ServiceId
fn serialize(&self, serializer: Serializer<'_>) -> Result<(), SerializeError>
impl Copy for ServiceId
impl Eq for ServiceId
impl StructuralPartialEq for ServiceId
Auto Trait Implementations§
impl Freeze for ServiceId
impl RefUnwindSafe for ServiceId
impl Send for ServiceId
impl Sync for ServiceId
impl Unpin for ServiceId
impl UnwindSafe for ServiceId
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