pub enum LongEccHeaderConstructorError {
GenerateParity(RSGenerateParityError),
InvalidFullLength(u32, u64),
InvalidMessageLength(u32, u32),
InvalidParityCount(u8),
InvalidSegmentParityRatio(u8, u8),
}Expand description
Errors returned by LongEccHeader::new.
Variants§
GenerateParity(RSGenerateParityError)
Propagated from generating the header parity.
InvalidFullLength(u32, u64)
The full length does not match the codeword length derived from the message length and segment geometry.
InvalidMessageLength(u32, u32)
The header and message do not fit within the full length.
InvalidParityCount(u8)
The error-correction capability exceeds
MAX_PARITY.
InvalidSegmentParityRatio(u8, u8)
The parity bytes leave no room for new data within a segment.
Trait Implementations§
Source§impl Clone for LongEccHeaderConstructorError
impl Clone for LongEccHeaderConstructorError
Source§fn clone(&self) -> LongEccHeaderConstructorError
fn clone(&self) -> LongEccHeaderConstructorError
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 Eq for LongEccHeaderConstructorError
Source§impl Error for LongEccHeaderConstructorError
impl Error for LongEccHeaderConstructorError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<LongEccHeaderConstructorError> for LongEccEncodeError
impl From<LongEccHeaderConstructorError> for LongEccEncodeError
Source§fn from(source: LongEccHeaderConstructorError) -> Self
fn from(source: LongEccHeaderConstructorError) -> Self
Converts to this type from the input type.
Source§impl From<RSGenerateParityError> for LongEccHeaderConstructorError
impl From<RSGenerateParityError> for LongEccHeaderConstructorError
Source§fn from(source: RSGenerateParityError) -> Self
fn from(source: RSGenerateParityError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for LongEccHeaderConstructorError
Auto Trait Implementations§
impl Freeze for LongEccHeaderConstructorError
impl RefUnwindSafe for LongEccHeaderConstructorError
impl Send for LongEccHeaderConstructorError
impl Sync for LongEccHeaderConstructorError
impl Unpin for LongEccHeaderConstructorError
impl UnsafeUnpin for LongEccHeaderConstructorError
impl UnwindSafe for LongEccHeaderConstructorError
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