pub struct StreamKeyRef(/* private fields */);
Available on crate feature
stream
only.Expand description
A Stream Key (hidden Debug output)
Implementations§
Source§impl StreamKeyRef
impl StreamKeyRef
Sourcepub const fn from_str(raw: &str) -> &Self
pub const fn from_str(raw: &str) -> &Self
Transparently reinterprets the string slice as a strongly-typed StreamKeyRef
Sourcepub const fn from_static(raw: &'static str) -> &'static Self
pub const fn from_static(raw: &'static str) -> &'static Self
Transparently reinterprets the static string slice as a strongly-typed StreamKeyRef
Sourcepub fn into_owned(self: Box<StreamKeyRef>) -> StreamKey
pub fn into_owned(self: Box<StreamKeyRef>) -> StreamKey
Converts a Box<StreamKeyRef>
into a StreamKey
without copying or allocating
Source§impl StreamKeyRef
impl 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 AsRef<str> for StreamKeyRef
impl AsRef<str> for StreamKeyRef
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 Borrow<str> for StreamKeyRef
impl Borrow<str> for StreamKeyRef
Source§impl Debug for StreamKeyRef
impl Debug for StreamKeyRef
Source§impl<'de: 'a, 'a> Deserialize<'de> for &'a StreamKeyRef
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a StreamKeyRef
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<'de> Deserialize<'de> for Box<StreamKeyRef>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<StreamKeyRef>
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 Display for StreamKeyRef
impl Display for StreamKeyRef
Source§impl<'a> From<&'a &'a StreamKeyRef> for Collection<'a, StreamKey>
impl<'a> From<&'a &'a StreamKeyRef> for Collection<'a, StreamKey>
Source§fn from(v: &'a &'a StreamKeyRef) -> Self
fn from(v: &'a &'a StreamKeyRef) -> Self
Converts to this type from the input type.
Source§impl<'a, 'b: 'a> From<&'a Cow<'b, StreamKeyRef>> for &'a StreamKeyRef
impl<'a, 'b: 'a> From<&'a Cow<'b, StreamKeyRef>> for &'a StreamKeyRef
Source§fn from(r: &'a Cow<'b, StreamKeyRef>) -> &'a StreamKeyRef
fn from(r: &'a Cow<'b, StreamKeyRef>) -> &'a StreamKeyRef
Converts to this type from the input type.
Source§impl<'a> From<&'a StreamKey> for &'a StreamKeyRef
impl<'a> From<&'a StreamKey> for &'a StreamKeyRef
Source§impl From<&StreamKeyRef> for Arc<StreamKeyRef>
impl From<&StreamKeyRef> for Arc<StreamKeyRef>
Source§fn from(r: &StreamKeyRef) -> Self
fn from(r: &StreamKeyRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a StreamKeyRef> for Cow<'a, StreamKeyRef>
impl<'a> From<&'a StreamKeyRef> for Cow<'a, StreamKeyRef>
Source§fn from(r: &'a StreamKeyRef) -> Self
fn from(r: &'a StreamKeyRef) -> Self
Converts to this type from the input type.
Source§impl From<&StreamKeyRef> for Rc<StreamKeyRef>
impl From<&StreamKeyRef> for Rc<StreamKeyRef>
Source§fn from(r: &StreamKeyRef) -> Self
fn from(r: &StreamKeyRef) -> Self
Converts to this type from the input type.
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<'a> From<&'a String> for &'a StreamKeyRef
impl<'a> From<&'a String> for &'a StreamKeyRef
Source§impl<'a> From<&'a str> for &'a StreamKeyRef
impl<'a> From<&'a str> for &'a StreamKeyRef
Source§fn from(s: &'a str) -> &'a StreamKeyRef
fn from(s: &'a str) -> &'a StreamKeyRef
Converts to this type from the input type.
Source§impl Hash for StreamKeyRef
impl Hash for StreamKeyRef
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 &'a StreamKeyRef
impl<'a> IntoCow<'a, StreamKeyRef> for &'a StreamKeyRef
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 StreamKeyRef
impl Ord for StreamKeyRef
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 PartialEq for StreamKeyRef
impl PartialEq for StreamKeyRef
Source§impl PartialOrd for StreamKeyRef
impl PartialOrd for StreamKeyRef
Source§impl Serialize for StreamKeyRef
Available on crate feature serde
only.
impl Serialize for StreamKeyRef
Available on crate feature
serde
only.