pub struct ChunkSize(/* private fields */);Expand description
A validated RTMP chunk size (§5.4.1): 1..=0x7FFF_FFFF.
Implementations§
Source§impl ChunkSize
impl ChunkSize
Sourcepub const fn try_new(value: u32) -> Result<Self, RtmpError>
pub const fn try_new(value: u32) -> Result<Self, RtmpError>
Construct a validated chunk size: 1..=0x7FFF_FFFF (the 31-bit wire
field, §5.4.1) and within this engine’s MAX_CHUNK_SIZE ceiling.
The ceiling is enforced here rather than by clamping later, so the engine never adopts a chunk size other than the one announced.
Trait Implementations§
impl Copy for ChunkSize
impl Eq for ChunkSize
Source§impl Ord for ChunkSize
impl Ord for ChunkSize
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 PartialOrd for ChunkSize
impl PartialOrd for ChunkSize
impl StructuralPartialEq for ChunkSize
Auto Trait Implementations§
impl Forget for ChunkSize
impl Freeze for ChunkSize
impl Move for ChunkSize
impl RefUnwindSafe for ChunkSize
impl Send for ChunkSize
impl Sync for ChunkSize
impl Unpin for ChunkSize
impl UnsafeUnpin for ChunkSize
impl UnwindSafe for ChunkSize
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