pub struct StreamRefId(/* private fields */);Expand description
Stream-ref identifier scoped to one transport connection.
Implementations§
Source§impl StreamRefId
impl StreamRefId
Sourcepub const fn from_u128(value: u128) -> Self
pub const fn from_u128(value: u128) -> Self
Constructs an id from a stable numeric value, primarily for tests and single-stream carriers that reserve a well-known id.
pub const fn as_u128(self) -> u128
pub fn to_bytes(self) -> [u8; 16]
pub fn from_bytes(bytes: &[u8]) -> StreamResult<Self>
Trait Implementations§
Source§impl Clone for StreamRefId
impl Clone for StreamRefId
Source§fn clone(&self) -> StreamRefId
fn clone(&self) -> StreamRefId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StreamRefId
Source§impl Debug for StreamRefId
impl Debug for StreamRefId
Source§impl Default for StreamRefId
impl Default for StreamRefId
Source§impl Display for StreamRefId
impl Display for StreamRefId
impl Eq for StreamRefId
Source§impl Hash for StreamRefId
impl Hash for StreamRefId
Source§impl PartialEq for StreamRefId
impl PartialEq for StreamRefId
Source§fn eq(&self, other: &StreamRefId) -> bool
fn eq(&self, other: &StreamRefId) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamRefId
Auto Trait Implementations§
impl Freeze for StreamRefId
impl RefUnwindSafe for StreamRefId
impl Send for StreamRefId
impl Sync for StreamRefId
impl Unpin for StreamRefId
impl UnsafeUnpin for StreamRefId
impl UnwindSafe for StreamRefId
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> JobKey for T
Source§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage