#[non_exhaustive]pub enum SigmfError {
Io(Error),
Serde(Error),
InvalidJson(String),
InvalidDataType(String),
InvalidMetadata(String),
UnsupportedLayout(String),
InvalidRange(String),
ResourceLimit(String),
NoDataset,
NotFound(String),
HashMismatch(String),
LockError(String),
}Expand description
Errors returned by this crate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Io(Error)
An underlying filesystem or I/O operation failed.
Serde(Error)
JSON serialization or deserialization failed.
InvalidJson(String)
The input is not valid JSON for SigMF (for example, duplicate keys).
InvalidDataType(String)
A core:datatype string is malformed or unsupported.
InvalidMetadata(String)
Metadata, a path, or an argument violates the SigMF specification or this crate’s requirements.
UnsupportedLayout(String)
The dataset layout (NCD headers, trailing bytes, metadata-only, …) is not supported by the requested operation.
InvalidRange(String)
A requested sample range is outside the dataset.
ResourceLimit(String)
An input exceeds a size limit, or memory could not be reserved.
NoDataset
The recording has no dataset (it is metadata-only).
NotFound(String)
A recording, archive member, or file was not found.
HashMismatch(String)
A SHA-512 digest does not match the expected value.
LockError(String)
A lock could not be acquired.
Trait Implementations§
Source§impl Debug for SigmfError
impl Debug for SigmfError
Source§impl Display for SigmfError
impl Display for SigmfError
Source§impl Error for SigmfError
impl Error for SigmfError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<Error> for SigmfError
impl From<Error> for SigmfError
Auto Trait Implementations§
impl !RefUnwindSafe for SigmfError
impl !UnwindSafe for SigmfError
impl Freeze for SigmfError
impl Send for SigmfError
impl Sync for SigmfError
impl Unpin for SigmfError
impl UnsafeUnpin for SigmfError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more