#[repr(transparent)]pub struct ChannelCookie(pub Uuid);Expand description
Cookie of a channel.
ChannelCookies are chosen by the broker when creating a channel.
Tuple Fields§
§0: UuidImplementations§
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§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 ChannelCookie
impl AsSerializeArg for ChannelCookie
type SerializeArg<'a> = ChannelCookie
fn as_serialize_arg<'a>(&'a self) -> Self::SerializeArg<'a>where
Self: 'a,
Source§impl Clone for ChannelCookie
impl Clone for ChannelCookie
Source§fn clone(&self) -> ChannelCookie
fn clone(&self) -> ChannelCookie
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 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<'de> Deserialize<'de> for ChannelCookie
impl<'de> Deserialize<'de> for ChannelCookie
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 ChannelCookie
impl Deserialize for ChannelCookie
fn deserialize( deserializer: Deserializer<'_, '_>, ) -> Result<Self, DeserializeError>
Source§impl DeserializeKey for ChannelCookie
impl DeserializeKey for ChannelCookie
type Impl = Uuid
fn try_from_impl(key: Self::Impl) -> 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 Introspectable for ChannelCookie
Available on crate feature introspection only.
impl Introspectable for ChannelCookie
Available on crate feature
introspection only.fn layout() -> Layout
fn lexical_id() -> LexicalId
fn add_references(_references: &mut References<'_>)
Source§impl KeyTypeOf for ChannelCookie
Available on crate feature introspection only.
impl KeyTypeOf for ChannelCookie
Available on crate feature
introspection only.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§impl PartialOrd for ChannelCookie
impl PartialOrd for ChannelCookie
Source§impl Serialize for ChannelCookie
impl Serialize for ChannelCookie
Source§impl Serialize for ChannelCookie
impl Serialize for ChannelCookie
fn serialize(&self, serializer: Serializer<'_>) -> Result<(), SerializeError>
Source§impl SerializeKey for ChannelCookie
impl SerializeKey for ChannelCookie
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