pub struct StreamId(/* private fields */);Expand description
24-bit ID of a rammux stream.
Each active rammux stream has an ID uniquely identifies that stream relative to all other active streams. Freed IDs are reused.
Implementations§
Source§impl StreamId
impl StreamId
Sourcepub const fn initiated_by(self) -> RammuxRole
pub const fn initiated_by(self) -> RammuxRole
Returns the role that initiated the stream.
Trait Implementations§
impl Copy for StreamId
Source§impl Distribution<StreamId> for StandardUniform
impl Distribution<StreamId> for StandardUniform
impl Eq for StreamId
Source§impl Ord for StreamId
impl Ord for StreamId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for StreamId
impl PartialOrd 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 UnsafeUnpin 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