pub struct StreamId(/* private fields */);
Available on crate feature
stream
only.Expand description
A Stream ID
Implementations§
Source§impl StreamId
impl StreamId
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newStreamIdfrom a static reference
Sourcepub fn into_boxed_ref(self) -> Box<StreamIdRef>
pub fn into_boxed_ref(self) -> Box<StreamIdRef>
Converts this StreamId
into a Box<StreamIdRef>
This will drop any excess capacity.
Methods from Deref<Target = 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 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<'de> Deserialize<'de> for StreamId
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for StreamId
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 StreamId> for &'a StreamIdRef
impl<'a> From<&'a StreamId> for &'a StreamIdRef
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 From<Box<StreamIdRef>> for StreamId
impl From<Box<StreamIdRef>> for StreamId
Source§fn from(r: Box<StreamIdRef>) -> Self
fn from(r: Box<StreamIdRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Cow<'a, StreamIdRef>> for StreamId
impl<'a> From<Cow<'a, StreamIdRef>> for StreamId
Source§fn from(r: Cow<'a, StreamIdRef>) -> Self
fn from(r: Cow<'a, StreamIdRef>) -> Self
Converts to this type from the input type.
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 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 StreamId
impl Ord for StreamId
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 PartialOrd for StreamId
impl PartialOrd for StreamId
impl Eq for StreamId
impl StructuralPartialEq for StreamId
Auto Trait Implementations§
impl Freeze for StreamId
impl RefUnwindSafe for StreamId
impl Send for StreamId
impl Sync for StreamId
impl Unpin for StreamId
impl UnwindSafe for StreamId
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
)