pub struct StreamKey(/* private fields */);Available on crate feature
stream only.Expand description
A Stream Key (hidden Debug output)
Implementations§
Source§impl StreamKey
impl StreamKey
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newStreamKeyfrom a static reference
Sourcepub fn into_boxed_ref(self) -> Box<StreamKeyRef>
pub fn into_boxed_ref(self) -> Box<StreamKeyRef>
Converts this StreamKey into a Box<StreamKeyRef>
This will drop any excess capacity.
Methods from Deref<Target = StreamKeyRef>§
Sourcepub fn as_cow(&self) -> Cow<'_, StreamKeyRef>
pub fn as_cow(&self) -> Cow<'_, StreamKeyRef>
Get a
Cow<'_, StreamKeyRef>
Trait Implementations§
Source§impl<'a> Arbitrary<'a> for StreamKey
Available on crate feature arbitrary only.
impl<'a> Arbitrary<'a> for StreamKey
Available on crate feature
arbitrary only.Source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
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 AsRef<StreamKeyRef> for StreamKey
impl AsRef<StreamKeyRef> for StreamKey
Source§fn as_ref(&self) -> &StreamKeyRef
fn as_ref(&self) -> &StreamKeyRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<StreamKeyRef> for StreamKey
impl Borrow<StreamKeyRef> for StreamKey
Source§fn borrow(&self) -> &StreamKeyRef
fn borrow(&self) -> &StreamKeyRef
Immutably borrows from an owned value. Read more
Source§impl<'de> Deserialize<'de> for StreamKey
Available on crate feature serde only.
impl<'de> Deserialize<'de> for StreamKey
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> From<&'a StreamKey> for &'a StreamKeyRef
impl<'a> From<&'a StreamKey> for &'a StreamKeyRef
Source§impl From<&StreamKeyRef> for StreamKey
impl From<&StreamKeyRef> for StreamKey
Source§fn from(s: &StreamKeyRef) -> Self
fn from(s: &StreamKeyRef) -> Self
Converts to this type from the input type.
Source§impl From<Box<StreamKeyRef>> for StreamKey
impl From<Box<StreamKeyRef>> for StreamKey
Source§fn from(r: Box<StreamKeyRef>) -> Self
fn from(r: Box<StreamKeyRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Cow<'a, StreamKeyRef>> for StreamKey
impl<'a> From<Cow<'a, StreamKeyRef>> for StreamKey
Source§fn from(r: Cow<'a, StreamKeyRef>) -> Self
fn from(r: Cow<'a, StreamKeyRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> IntoCow<'a, StreamKeyRef> for &'a StreamKey
impl<'a> IntoCow<'a, StreamKeyRef> for &'a StreamKey
Source§fn into_cow(self) -> Cow<'a, StreamKeyRef>
fn into_cow(self) -> Cow<'a, StreamKeyRef>
Make the cow with proper ownership, muu
Source§impl<'a> IntoCow<'a, StreamKeyRef> for StreamKey
impl<'a> IntoCow<'a, StreamKeyRef> for StreamKey
Source§fn into_cow(self) -> Cow<'a, StreamKeyRef>
fn into_cow(self) -> Cow<'a, StreamKeyRef>
Make the cow with proper ownership, muu
Source§impl Ord for StreamKey
impl Ord for StreamKey
Source§impl PartialEq<&StreamKeyRef> for StreamKey
impl PartialEq<&StreamKeyRef> for StreamKey
Source§impl PartialEq<StreamKey> for &StreamKeyRef
impl PartialEq<StreamKey> for &StreamKeyRef
Source§impl PartialEq<StreamKey> for StreamKeyRef
impl PartialEq<StreamKey> for StreamKeyRef
Source§impl PartialEq<StreamKeyRef> for StreamKey
impl PartialEq<StreamKeyRef> for StreamKey
Source§impl PartialOrd for StreamKey
impl PartialOrd for StreamKey
Source§impl<'zf> ZeroFrom<'zf, StreamKey> for &'zf StreamKeyRef
Available on crate feature zerofrom only.
impl<'zf> ZeroFrom<'zf, StreamKey> for &'zf StreamKeyRef
Available on crate feature
zerofrom only.impl Eq for StreamKey
impl StructuralPartialEq for StreamKey
Auto Trait Implementations§
impl Freeze for StreamKey
impl RefUnwindSafe for StreamKey
impl Send for StreamKey
impl Sync for StreamKey
impl Unpin for StreamKey
impl UnwindSafe for StreamKey
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