Struct aldrin_core::ChannelCookie
source · #[repr(transparent)]pub struct ChannelCookie(pub Uuid);
Expand description
Cookie of a channel.
ChannelCookie
s are chosen by the broker when creating a channel.
Tuple Fields§
§0: Uuid
Implementations§
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for ChannelCookie
impl<'arbitrary> Arbitrary<'arbitrary> for ChannelCookie
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 ChannelCookie
impl Clone for ChannelCookie
source§fn clone(&self) -> ChannelCookie
fn clone(&self) -> ChannelCookie
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 ChannelCookie
impl Debug for ChannelCookie
source§impl Default for ChannelCookie
impl Default for ChannelCookie
source§fn default() -> ChannelCookie
fn default() -> ChannelCookie
Returns the “default value” for a type. Read more
source§impl Deserialize for ChannelCookie
impl Deserialize for ChannelCookie
fn deserialize( deserializer: Deserializer<'_, '_>, ) -> Result<Self, DeserializeError>
source§impl Display for ChannelCookie
impl Display for ChannelCookie
source§impl From<ChannelCookie> for Uuid
impl From<ChannelCookie> for Uuid
source§fn from(cookie: ChannelCookie) -> Self
fn from(cookie: ChannelCookie) -> Self
Converts to this type from the input type.
source§impl From<Uuid> for ChannelCookie
impl From<Uuid> for ChannelCookie
source§impl Hash for ChannelCookie
impl Hash for ChannelCookie
source§impl Ord for ChannelCookie
impl Ord for ChannelCookie
source§fn cmp(&self, other: &ChannelCookie) -> Ordering
fn cmp(&self, other: &ChannelCookie) -> 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 ChannelCookie
impl PartialEq for ChannelCookie
source§fn eq(&self, other: &ChannelCookie) -> bool
fn eq(&self, other: &ChannelCookie) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ChannelCookie
impl PartialOrd for ChannelCookie
source§fn partial_cmp(&self, other: &ChannelCookie) -> Option<Ordering>
fn partial_cmp(&self, other: &ChannelCookie) -> 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 ChannelCookie
impl Serialize for ChannelCookie
fn serialize(&self, serializer: Serializer<'_>) -> Result<(), SerializeError>
impl Copy for ChannelCookie
impl Eq for ChannelCookie
impl StructuralPartialEq for ChannelCookie
Auto Trait Implementations§
impl Freeze for ChannelCookie
impl RefUnwindSafe for ChannelCookie
impl Send for ChannelCookie
impl Sync for ChannelCookie
impl Unpin for ChannelCookie
impl UnwindSafe for ChannelCookie
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