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: ObjectIdId of the associated object.
uuid: ServiceUuidUUID 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§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 ServiceId
impl AsSerializeArg for ServiceId
type SerializeArg<'a> = ServiceId
fn as_serialize_arg<'a>(&'a self) -> Self::SerializeArg<'a>where
Self: 'a,
Source§impl<'de> Deserialize<'de> for ServiceId
impl<'de> Deserialize<'de> for ServiceId
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 ServiceId
impl Deserialize for ServiceId
fn deserialize( deserializer: Deserializer<'_, '_>, ) -> Result<Self, DeserializeError>
Source§impl Introspectable for ServiceId
Available on crate feature introspection only.
impl Introspectable for ServiceId
Available on crate feature
introspection only.fn layout() -> Layout
fn lexical_id() -> LexicalId
fn add_references(_references: &mut References<'_>)
Source§impl Ord for ServiceId
impl Ord for ServiceId
Source§impl PartialOrd for ServiceId
impl PartialOrd for ServiceId
Source§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