pub struct StreamSegmentId(/* private fields */);
Available on crate feature
stream
only.Expand description
A Stream Segment ID.
Implementations§
Source§impl StreamSegmentId
impl StreamSegmentId
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newStreamSegmentIdfrom a static reference
Sourcepub fn into_boxed_ref(self) -> Box<StreamSegmentIdRef>
pub fn into_boxed_ref(self) -> Box<StreamSegmentIdRef>
Converts this StreamSegmentId
into a Box<StreamSegmentIdRef>
This will drop any excess capacity.
Methods from Deref<Target = StreamSegmentIdRef>§
Sourcepub fn as_cow(&self) -> Cow<'_, StreamSegmentIdRef>
pub fn as_cow(&self) -> Cow<'_, StreamSegmentIdRef>
Trait Implementations§
Source§impl AsRef<StreamSegmentIdRef> for StreamSegmentId
impl AsRef<StreamSegmentIdRef> for StreamSegmentId
Source§fn as_ref(&self) -> &StreamSegmentIdRef
fn as_ref(&self) -> &StreamSegmentIdRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<str> for StreamSegmentId
impl AsRef<str> for StreamSegmentId
Source§impl Borrow<StreamSegmentIdRef> for StreamSegmentId
impl Borrow<StreamSegmentIdRef> for StreamSegmentId
Source§fn borrow(&self) -> &StreamSegmentIdRef
fn borrow(&self) -> &StreamSegmentIdRef
Immutably borrows from an owned value. Read more
Source§impl Borrow<str> for StreamSegmentId
impl Borrow<str> for StreamSegmentId
Source§impl Clone for StreamSegmentId
impl Clone for StreamSegmentId
Source§fn clone(&self) -> StreamSegmentId
fn clone(&self) -> StreamSegmentId
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StreamSegmentId
impl Debug for StreamSegmentId
Source§impl Deref for StreamSegmentId
impl Deref for StreamSegmentId
Source§impl<'de> Deserialize<'de> for StreamSegmentId
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for StreamSegmentId
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 StreamSegmentId
impl Display for StreamSegmentId
Source§impl<'a> From<&'a StreamSegmentId> for &'a StreamSegmentIdRef
impl<'a> From<&'a StreamSegmentId> for &'a StreamSegmentIdRef
Source§fn from(owned: &'a StreamSegmentId) -> Self
fn from(owned: &'a StreamSegmentId) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a StreamSegmentId> for Collection<'a, StreamSegmentId>
impl<'a> From<&'a StreamSegmentId> for Collection<'a, StreamSegmentId>
Source§fn from(v: &'a StreamSegmentId) -> Self
fn from(v: &'a StreamSegmentId) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a StreamSegmentId> for Cow<'a, StreamSegmentIdRef>
impl<'a> From<&'a StreamSegmentId> for Cow<'a, StreamSegmentIdRef>
Source§fn from(owned: &'a StreamSegmentId) -> Self
fn from(owned: &'a StreamSegmentId) -> Self
Converts to this type from the input type.
Source§impl From<&StreamSegmentIdRef> for StreamSegmentId
impl From<&StreamSegmentIdRef> for StreamSegmentId
Source§fn from(s: &StreamSegmentIdRef) -> Self
fn from(s: &StreamSegmentIdRef) -> Self
Converts to this type from the input type.
Source§impl From<&str> for StreamSegmentId
impl From<&str> for StreamSegmentId
Source§impl From<Box<StreamSegmentIdRef>> for StreamSegmentId
impl From<Box<StreamSegmentIdRef>> for StreamSegmentId
Source§fn from(r: Box<StreamSegmentIdRef>) -> Self
fn from(r: Box<StreamSegmentIdRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Cow<'a, StreamSegmentIdRef>> for StreamSegmentId
impl<'a> From<Cow<'a, StreamSegmentIdRef>> for StreamSegmentId
Source§fn from(r: Cow<'a, StreamSegmentIdRef>) -> Self
fn from(r: Cow<'a, StreamSegmentIdRef>) -> Self
Converts to this type from the input type.
Source§impl From<StreamSegmentId> for Box<StreamSegmentIdRef>
impl From<StreamSegmentId> for Box<StreamSegmentIdRef>
Source§fn from(r: StreamSegmentId) -> Self
fn from(r: StreamSegmentId) -> Self
Converts to this type from the input type.
Source§impl<'a> From<StreamSegmentId> for Cow<'a, StreamSegmentIdRef>
impl<'a> From<StreamSegmentId> for Cow<'a, StreamSegmentIdRef>
Source§fn from(owned: StreamSegmentId) -> Self
fn from(owned: StreamSegmentId) -> Self
Converts to this type from the input type.
Source§impl From<StreamSegmentId> for String
impl From<StreamSegmentId> for String
Source§fn from(s: StreamSegmentId) -> Self
fn from(s: StreamSegmentId) -> Self
Converts to this type from the input type.
Source§impl From<String> for StreamSegmentId
impl From<String> for StreamSegmentId
Source§impl FromStr for StreamSegmentId
impl FromStr for StreamSegmentId
Source§impl Hash for StreamSegmentId
impl Hash for StreamSegmentId
Source§impl<'a> IntoCow<'a, StreamSegmentIdRef> for &'a StreamSegmentId
impl<'a> IntoCow<'a, StreamSegmentIdRef> for &'a StreamSegmentId
Source§fn into_cow(self) -> Cow<'a, StreamSegmentIdRef>
fn into_cow(self) -> Cow<'a, StreamSegmentIdRef>
Make the cow with proper ownership, muu
Source§impl<'a> IntoCow<'a, StreamSegmentIdRef> for StreamSegmentId
impl<'a> IntoCow<'a, StreamSegmentIdRef> for StreamSegmentId
Source§fn into_cow(self) -> Cow<'a, StreamSegmentIdRef>
fn into_cow(self) -> Cow<'a, StreamSegmentIdRef>
Make the cow with proper ownership, muu
Source§impl Ord for StreamSegmentId
impl Ord for StreamSegmentId
Source§impl PartialEq<&StreamSegmentId> for StreamSegmentId
impl PartialEq<&StreamSegmentId> for StreamSegmentId
Source§impl PartialEq<&StreamSegmentIdRef> for StreamSegmentId
impl PartialEq<&StreamSegmentIdRef> for StreamSegmentId
Source§impl PartialEq<StreamSegmentId> for &StreamSegmentIdRef
impl PartialEq<StreamSegmentId> for &StreamSegmentIdRef
Source§impl PartialEq for StreamSegmentId
impl PartialEq for StreamSegmentId
Source§impl PartialOrd for StreamSegmentId
impl PartialOrd for StreamSegmentId
Source§impl Serialize for StreamSegmentId
Available on crate feature serde
only.
impl Serialize for StreamSegmentId
Available on crate feature
serde
only.impl Eq for StreamSegmentId
impl StructuralPartialEq for StreamSegmentId
Auto Trait Implementations§
impl Freeze for StreamSegmentId
impl RefUnwindSafe for StreamSegmentId
impl Send for StreamSegmentId
impl Sync for StreamSegmentId
impl Unpin for StreamSegmentId
impl UnwindSafe for StreamSegmentId
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
)