#[non_exhaustive]pub enum SaParseError {
NotStructuredAppend,
MalformedStream,
}Expand description
Errors returned while parsing a Structured Append data bit stream.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotStructuredAppend
The decoded bit stream does not begin with the Structured Append mode
indicator (0011).
MalformedStream
The bit stream was truncated or otherwise malformed while parsing a Structured Append header or data segment.
Trait Implementations§
Source§impl Clone for SaParseError
impl Clone for SaParseError
impl Copy for SaParseError
Source§impl Debug for SaParseError
impl Debug for SaParseError
Source§impl Display for SaParseError
impl Display for SaParseError
impl Eq for SaParseError
Source§impl Error for SaParseError
impl Error for SaParseError
1.30.0 · 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 PartialEq for SaParseError
impl PartialEq for SaParseError
impl StructuralPartialEq for SaParseError
Auto Trait Implementations§
impl Forget for SaParseError
impl Freeze for SaParseError
impl Move for SaParseError
impl RefUnwindSafe for SaParseError
impl Send for SaParseError
impl Sync for SaParseError
impl Unpin for SaParseError
impl UnsafeUnpin for SaParseError
impl UnwindSafe for SaParseError
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