pub enum TransmissionError {
Resolution(ResolutionError),
Doppler(DopplerParamsError),
DopplerBroadening(DopplerError),
Cancelled,
InputMismatch(String),
}Expand description
Errors from the transmission forward model.
Variants§
Resolution(ResolutionError)
The energy grid is not sorted or has a length mismatch with data.
Doppler(DopplerParamsError)
Doppler broadening parameter validation failed.
DopplerBroadening(DopplerError)
Doppler broadening input validation failed (e.g. length mismatch).
Cancelled
Computation was cancelled via the cancel token.
InputMismatch(String)
Input array mismatch (e.g. cross-sections vs thicknesses length).
Trait Implementations§
Source§impl Debug for TransmissionError
impl Debug for TransmissionError
Source§impl Display for TransmissionError
impl Display for TransmissionError
Source§impl Error for TransmissionError
impl Error for TransmissionError
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<DopplerError> for TransmissionError
impl From<DopplerError> for TransmissionError
Source§fn from(e: DopplerError) -> Self
fn from(e: DopplerError) -> Self
Converts to this type from the input type.
Source§impl From<DopplerParamsError> for TransmissionError
impl From<DopplerParamsError> for TransmissionError
Source§fn from(e: DopplerParamsError) -> Self
fn from(e: DopplerParamsError) -> Self
Converts to this type from the input type.
Source§impl From<ResolutionError> for TransmissionError
impl From<ResolutionError> for TransmissionError
Source§fn from(e: ResolutionError) -> Self
fn from(e: ResolutionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TransmissionError
impl RefUnwindSafe for TransmissionError
impl Send for TransmissionError
impl Sync for TransmissionError
impl Unpin for TransmissionError
impl UnwindSafe for TransmissionError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.