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