Struct aldrin_core::ObjectCookie
source · #[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§impl Clone for ObjectCookie
impl Clone for ObjectCookie
source§fn clone(&self) -> ObjectCookie
fn clone(&self) -> ObjectCookie
Returns a copy 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 Deserialize for ObjectCookie
impl Deserialize for ObjectCookie
fn deserialize( deserializer: Deserializer<'_, '_> ) -> 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 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§fn eq(&self, other: &ObjectCookie) -> bool
fn eq(&self, other: &ObjectCookie) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ObjectCookie
impl PartialOrd for ObjectCookie
source§fn partial_cmp(&self, other: &ObjectCookie) -> Option<Ordering>
fn partial_cmp(&self, other: &ObjectCookie) -> Option<Ordering>
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 ObjectCookie
impl Serialize for ObjectCookie
fn serialize(&self, serializer: Serializer<'_>) -> Result<(), SerializeError>
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