#[repr(transparent)]pub struct ServiceCookie(pub Uuid);Expand description
Cookie of a service.
ServiceCookies are chosen by the broker when creating a service. They ensure that
services, created and destroyed over time with the same ServiceUuid and on the same object,
can still be distinguished.
Tuple Fields§
§0: UuidImplementations§
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for ServiceCookie
impl<'arbitrary> Arbitrary<'arbitrary> for ServiceCookie
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 ServiceCookie
impl AsSerializeArg for ServiceCookie
type SerializeArg<'a> = ServiceCookie
fn as_serialize_arg<'a>(&'a self) -> Self::SerializeArg<'a>where
Self: 'a,
Source§impl Clone for ServiceCookie
impl Clone for ServiceCookie
Source§fn clone(&self) -> ServiceCookie
fn clone(&self) -> ServiceCookie
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServiceCookie
impl Debug for ServiceCookie
Source§impl Default for ServiceCookie
impl Default for ServiceCookie
Source§fn default() -> ServiceCookie
fn default() -> ServiceCookie
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceCookie
impl<'de> Deserialize<'de> for ServiceCookie
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 ServiceCookie
impl Deserialize for ServiceCookie
fn deserialize( deserializer: Deserializer<'_, '_>, ) -> Result<Self, DeserializeError>
Source§impl DeserializeKey for ServiceCookie
impl DeserializeKey for ServiceCookie
type Impl = Uuid
fn try_from_impl(key: Self::Impl) -> Result<Self, DeserializeError>
Source§impl Display for ServiceCookie
impl Display for ServiceCookie
Source§impl From<ServiceCookie> for Uuid
impl From<ServiceCookie> for Uuid
Source§fn from(cookie: ServiceCookie) -> Self
fn from(cookie: ServiceCookie) -> Self
Converts to this type from the input type.
Source§impl From<Uuid> for ServiceCookie
impl From<Uuid> for ServiceCookie
Source§impl Hash for ServiceCookie
impl Hash for ServiceCookie
Source§impl Introspectable for ServiceCookie
impl Introspectable for ServiceCookie
fn layout() -> Layout
fn lexical_id() -> LexicalId
fn add_references(_references: &mut References<'_>)
Source§impl Ord for ServiceCookie
impl Ord for ServiceCookie
Source§fn cmp(&self, other: &ServiceCookie) -> Ordering
fn cmp(&self, other: &ServiceCookie) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ServiceCookie
impl PartialEq for ServiceCookie
Source§impl PartialOrd for ServiceCookie
impl PartialOrd for ServiceCookie
Source§impl Serialize for ServiceCookie
impl Serialize for ServiceCookie
Source§impl Serialize for ServiceCookie
impl Serialize for ServiceCookie
fn serialize(&self, serializer: Serializer<'_>) -> Result<(), SerializeError>
Source§impl SerializeKey for ServiceCookie
impl SerializeKey for ServiceCookie
impl Copy for ServiceCookie
impl Eq for ServiceCookie
impl StructuralPartialEq for ServiceCookie
Auto Trait Implementations§
impl Freeze for ServiceCookie
impl RefUnwindSafe for ServiceCookie
impl Send for ServiceCookie
impl Sync for ServiceCookie
impl Unpin for ServiceCookie
impl UnwindSafe for ServiceCookie
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