#[non_exhaustive]pub enum RepeaterStateError {
MissingIterations,
ParseIterations(ParseIntError),
ParseTaskId,
DuplicateEntry(MetadataError),
}Expand description
An error representing an invalid RepeaterState
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.
MissingIterations
Missing iterations key
ParseIterations(ParseIntError)
Could not parse iterations
ParseTaskId
Could not parse a task id
DuplicateEntry(MetadataError)
Duplicate entry
Trait Implementations§
Source§impl Debug for RepeaterStateError
impl Debug for RepeaterStateError
Source§impl Display for RepeaterStateError
impl Display for RepeaterStateError
Source§impl Error for RepeaterStateError
impl Error for RepeaterStateError
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<MetadataError> for RepeaterStateError
impl From<MetadataError> for RepeaterStateError
Source§fn from(source: MetadataError) -> Self
fn from(source: MetadataError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for RepeaterStateError
impl From<ParseIntError> for RepeaterStateError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RepeaterStateError
impl RefUnwindSafe for RepeaterStateError
impl Send for RepeaterStateError
impl Sync for RepeaterStateError
impl Unpin for RepeaterStateError
impl UnsafeUnpin for RepeaterStateError
impl UnwindSafe for RepeaterStateError
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