pub struct StreamIdRef(/* private fields */);
Available on crate feature
stream
only.Expand description
A Stream ID
Implementations§
Source§impl StreamIdRef
impl StreamIdRef
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 StreamIdRef
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 StreamIdRef
Sourcepub fn into_owned(self: Box<StreamIdRef>) -> StreamId
pub fn into_owned(self: Box<StreamIdRef>) -> StreamId
Converts a Box<StreamIdRef>
into a StreamId
without copying or allocating
Source§impl StreamIdRef
impl StreamIdRef
Sourcepub fn as_cow(&self) -> Cow<'_, StreamIdRef>
pub fn as_cow(&self) -> Cow<'_, StreamIdRef>
Get a
Cow<'_, StreamIdRef>
Trait Implementations§
Source§impl AsRef<StreamIdRef> for StreamId
impl AsRef<StreamIdRef> for StreamId
Source§fn as_ref(&self) -> &StreamIdRef
fn as_ref(&self) -> &StreamIdRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<str> for StreamIdRef
impl AsRef<str> for StreamIdRef
Source§impl Borrow<StreamIdRef> for StreamId
impl Borrow<StreamIdRef> for StreamId
Source§fn borrow(&self) -> &StreamIdRef
fn borrow(&self) -> &StreamIdRef
Immutably borrows from an owned value. Read more
Source§impl Borrow<str> for StreamIdRef
impl Borrow<str> for StreamIdRef
Source§impl Debug for StreamIdRef
impl Debug for StreamIdRef
Source§impl<'de: 'a, 'a> Deserialize<'de> for &'a StreamIdRef
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a StreamIdRef
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<StreamIdRef>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<StreamIdRef>
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 StreamIdRef
impl Display for StreamIdRef
Source§impl<'a> From<&'a &'a StreamIdRef> for Collection<'a, StreamId>
impl<'a> From<&'a &'a StreamIdRef> for Collection<'a, StreamId>
Source§fn from(v: &'a &'a StreamIdRef) -> Self
fn from(v: &'a &'a StreamIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a, 'b: 'a> From<&'a Cow<'b, StreamIdRef>> for &'a StreamIdRef
impl<'a, 'b: 'a> From<&'a Cow<'b, StreamIdRef>> for &'a StreamIdRef
Source§fn from(r: &'a Cow<'b, StreamIdRef>) -> &'a StreamIdRef
fn from(r: &'a Cow<'b, StreamIdRef>) -> &'a StreamIdRef
Converts to this type from the input type.
Source§impl<'a> From<&'a StreamId> for &'a StreamIdRef
impl<'a> From<&'a StreamId> for &'a StreamIdRef
Source§impl From<&StreamIdRef> for Arc<StreamIdRef>
impl From<&StreamIdRef> for Arc<StreamIdRef>
Source§fn from(r: &StreamIdRef) -> Self
fn from(r: &StreamIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a StreamIdRef> for Cow<'a, StreamIdRef>
impl<'a> From<&'a StreamIdRef> for Cow<'a, StreamIdRef>
Source§fn from(r: &'a StreamIdRef) -> Self
fn from(r: &'a StreamIdRef) -> Self
Converts to this type from the input type.
Source§impl From<&StreamIdRef> for Rc<StreamIdRef>
impl From<&StreamIdRef> for Rc<StreamIdRef>
Source§fn from(r: &StreamIdRef) -> Self
fn from(r: &StreamIdRef) -> Self
Converts to this type from the input type.
Source§impl From<&StreamIdRef> for StreamId
impl From<&StreamIdRef> for StreamId
Source§fn from(s: &StreamIdRef) -> Self
fn from(s: &StreamIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a String> for &'a StreamIdRef
impl<'a> From<&'a String> for &'a StreamIdRef
Source§impl<'a> From<&'a str> for &'a StreamIdRef
impl<'a> From<&'a str> for &'a StreamIdRef
Source§fn from(s: &'a str) -> &'a StreamIdRef
fn from(s: &'a str) -> &'a StreamIdRef
Converts to this type from the input type.
Source§impl Hash for StreamIdRef
impl Hash for StreamIdRef
Source§impl<'a> IntoCow<'a, StreamIdRef> for &'a StreamId
impl<'a> IntoCow<'a, StreamIdRef> for &'a StreamId
Source§fn into_cow(self) -> Cow<'a, StreamIdRef>
fn into_cow(self) -> Cow<'a, StreamIdRef>
Make the cow with proper ownership, muu
Source§impl<'a> IntoCow<'a, StreamIdRef> for &'a StreamIdRef
impl<'a> IntoCow<'a, StreamIdRef> for &'a StreamIdRef
Source§fn into_cow(self) -> Cow<'a, StreamIdRef>
fn into_cow(self) -> Cow<'a, StreamIdRef>
Make the cow with proper ownership, muu
Source§impl<'a> IntoCow<'a, StreamIdRef> for StreamId
impl<'a> IntoCow<'a, StreamIdRef> for StreamId
Source§fn into_cow(self) -> Cow<'a, StreamIdRef>
fn into_cow(self) -> Cow<'a, StreamIdRef>
Make the cow with proper ownership, muu
Source§impl Ord for StreamIdRef
impl Ord for StreamIdRef
Source§impl PartialEq<&StreamIdRef> for StreamId
impl PartialEq<&StreamIdRef> for StreamId
Source§impl PartialEq<StreamId> for &StreamIdRef
impl PartialEq<StreamId> for &StreamIdRef
Source§impl PartialEq<StreamId> for StreamIdRef
impl PartialEq<StreamId> for StreamIdRef
Source§impl PartialEq<StreamIdRef> for StreamId
impl PartialEq<StreamIdRef> for StreamId
Source§impl PartialEq for StreamIdRef
impl PartialEq for StreamIdRef
Source§impl PartialOrd for StreamIdRef
impl PartialOrd for StreamIdRef
Source§impl Serialize for StreamIdRef
Available on crate feature serde
only.
impl Serialize for StreamIdRef
Available on crate feature
serde
only.