pub struct ChunkStreamId(/* private fields */);Expand description
Chunk stream id (csid) — the per-chunk-stream multiplexing identity (§5.1.2), carried by the basic header in the range 2..=65599.
Implementations§
Source§impl ChunkStreamId
impl ChunkStreamId
Sourcepub const fn new(raw: u32) -> Self
pub const fn new(raw: u32) -> Self
Wrap a chunk stream id as read from, or written to, the wire. Every
u32 is representable as a value; basic_header_encodable says
whether a basic header can carry it.
Sourcepub const fn basic_header_encodable(self) -> bool
pub const fn basic_header_encodable(self) -> bool
Whether a basic header can carry this id (2..=65599, §5.3.1.1).
Trait Implementations§
Source§impl Clone for ChunkStreamId
impl Clone for ChunkStreamId
impl Copy for ChunkStreamId
Source§impl Debug for ChunkStreamId
impl Debug for ChunkStreamId
Source§impl Default for ChunkStreamId
impl Default for ChunkStreamId
Source§impl<'de> Deserialize<'de> for ChunkStreamId
Available on crate feature serde only.
impl<'de> Deserialize<'de> for ChunkStreamId
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ChunkStreamId
impl Display for ChunkStreamId
impl Eq for ChunkStreamId
Source§impl From<ChunkStreamId> for u32
impl From<ChunkStreamId> for u32
Source§fn from(id: ChunkStreamId) -> Self
fn from(id: ChunkStreamId) -> Self
Converts to this type from the input type.
Source§impl From<u32> for ChunkStreamId
impl From<u32> for ChunkStreamId
Source§impl Hash for ChunkStreamId
impl Hash for ChunkStreamId
Source§impl Ord for ChunkStreamId
impl Ord for ChunkStreamId
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ChunkStreamId
impl PartialEq for ChunkStreamId
Source§impl PartialOrd for ChunkStreamId
impl PartialOrd for ChunkStreamId
Source§impl Serialize for ChunkStreamId
Available on crate feature serde only.
impl Serialize for ChunkStreamId
Available on crate feature
serde only.impl StructuralPartialEq for ChunkStreamId
Auto Trait Implementations§
impl Forget for ChunkStreamId
impl Freeze for ChunkStreamId
impl Move for ChunkStreamId
impl RefUnwindSafe for ChunkStreamId
impl Send for ChunkStreamId
impl Sync for ChunkStreamId
impl Unpin for ChunkStreamId
impl UnsafeUnpin for ChunkStreamId
impl UnwindSafe for ChunkStreamId
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