pub struct FecSchemeSpecificInfo { /* private fields */ }Expand description
The three-octet RFC 8681 FEC Scheme-Specific Information value.
Implementations§
Source§impl FecSchemeSpecificInfo
impl FecSchemeSpecificInfo
Sourcepub const fn new(symbol_size: u16, window_size_ratio: u8) -> Self
pub const fn new(symbol_size: u16, window_size_ratio: u8) -> Self
Creates scheme-specific information from the symbol size and WSR value.
Sourcepub const fn symbol_size(self) -> u16
pub const fn symbol_size(self) -> u16
Returns the encoding symbol size in bytes.
Sourcepub const fn window_size_ratio(self) -> u8
pub const fn window_size_ratio(self) -> u8
Returns the window size ratio, where zero means unspecified.
Sourcepub const fn from_bytes(bytes: [u8; 3]) -> Self
pub const fn from_bytes(bytes: [u8; 3]) -> Self
Decodes a value in network byte order.
Trait Implementations§
Source§impl Clone for FecSchemeSpecificInfo
impl Clone for FecSchemeSpecificInfo
Source§fn clone(&self) -> FecSchemeSpecificInfo
fn clone(&self) -> FecSchemeSpecificInfo
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 FecSchemeSpecificInfo
Source§impl Debug for FecSchemeSpecificInfo
impl Debug for FecSchemeSpecificInfo
impl Eq for FecSchemeSpecificInfo
Source§impl From<FecSchemeSpecificInfo> for [u8; 3]
impl From<FecSchemeSpecificInfo> for [u8; 3]
Source§fn from(value: FecSchemeSpecificInfo) -> Self
fn from(value: FecSchemeSpecificInfo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FecSchemeSpecificInfo
impl PartialEq for FecSchemeSpecificInfo
impl StructuralPartialEq for FecSchemeSpecificInfo
Auto Trait Implementations§
impl Freeze for FecSchemeSpecificInfo
impl RefUnwindSafe for FecSchemeSpecificInfo
impl Send for FecSchemeSpecificInfo
impl Sync for FecSchemeSpecificInfo
impl Unpin for FecSchemeSpecificInfo
impl UnsafeUnpin for FecSchemeSpecificInfo
impl UnwindSafe for FecSchemeSpecificInfo
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