pub struct SubstreamId(/* private fields */);Expand description
Substream ID.
Implementations§
Source§impl SubstreamId
impl SubstreamId
Sourcepub fn new() -> Self
pub fn new() -> Self
Create new SubstreamId.
Sourcepub fn from<T: Into<usize>>(value: T) -> Self
pub fn from<T: Into<usize>>(value: T) -> Self
Get SubstreamId from a number that can be converted into a usize.
Trait Implementations§
Source§impl Clone for SubstreamId
impl Clone for SubstreamId
Source§fn clone(&self) -> SubstreamId
fn clone(&self) -> SubstreamId
Returns a duplicate 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 SubstreamId
impl Debug for SubstreamId
Source§impl Default for SubstreamId
impl Default for SubstreamId
Source§impl Hash for SubstreamId
impl Hash for SubstreamId
Source§impl PartialEq for SubstreamId
impl PartialEq for SubstreamId
impl Copy for SubstreamId
impl Eq for SubstreamId
impl StructuralPartialEq for SubstreamId
Auto Trait Implementations§
impl Freeze for SubstreamId
impl RefUnwindSafe for SubstreamId
impl Send for SubstreamId
impl Sync for SubstreamId
impl Unpin for SubstreamId
impl UnwindSafe for SubstreamId
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.