pub enum EventFactoryError {
InputStreamUnknown(Vec<String>),
ValueNotSupported(ValueConvertError),
VariantIgnored(String),
Other(Box<dyn Error + Send + 'static>),
}
Expand description
A generic Error to be used by EventFactorys
Variants§
InputStreamUnknown(Vec<String>)
Could not find an associated struct field for the input streams.
ValueNotSupported(ValueConvertError)
The value of the struct field is not supported by the interpreter.
Help: TryFrom<YourType> for Value
has to be implemented.
VariantIgnored(String)
The variant of the enum identified by the string was ignored when deriving the Input, yet it was received as an input.
Other(Box<dyn Error + Send + 'static>)
An unknown error occurred
Trait Implementations§
Source§impl Debug for EventFactoryError
impl Debug for EventFactoryError
Source§impl Display for EventFactoryError
impl Display for EventFactoryError
Source§impl Error for EventFactoryError
impl Error for EventFactoryError
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<I: Error + Send + 'static> From<ArrayFactoryError<I>> for EventFactoryError
impl<I: Error + Send + 'static> From<ArrayFactoryError<I>> for EventFactoryError
Source§fn from(value: ArrayFactoryError<I>) -> Self
fn from(value: ArrayFactoryError<I>) -> Self
Converts to this type from the input type.
Source§impl From<Infallible> for EventFactoryError
impl From<Infallible> for EventFactoryError
Source§fn from(_value: Infallible) -> Self
fn from(_value: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<ValueConvertError> for EventFactoryError
impl From<ValueConvertError> for EventFactoryError
Source§fn from(value: ValueConvertError) -> Self
fn from(value: ValueConvertError) -> Self
Converts to this type from the input type.
Source§impl<I: Error + Send + 'static> From<VectorFactoryError<I>> for EventFactoryError
impl<I: Error + Send + 'static> From<VectorFactoryError<I>> for EventFactoryError
Source§fn from(value: VectorFactoryError<I>) -> Self
fn from(value: VectorFactoryError<I>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EventFactoryError
impl !RefUnwindSafe for EventFactoryError
impl Send for EventFactoryError
impl !Sync for EventFactoryError
impl Unpin for EventFactoryError
impl !UnwindSafe for EventFactoryError
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
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