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 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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)