pub enum LineBuilderError {
InvalidKeyValuePair,
InvalidIntegerValue {
key: &'static str,
value: Box<str>,
error: ParseIntError,
},
InvalidFloatValue(&'static str, ParseFloatError),
DuplicateKey {
key: Box<str>,
new_value: Box<str>,
old_value: Box<str>,
},
MissingKeyValuePair(&'static str),
}
Expand description
An error that occurs while building a ProgressEvent
Variants§
InvalidKeyValuePair
The key=value
pair is invalid
InvalidIntegerValue
Invalid integer value for a key
InvalidFloatValue(&'static str, ParseFloatError)
Invalid float value for a key
DuplicateKey
Fields
Got a duplicate key
MissingKeyValuePair(&'static str)
Missing a key=value pair
Trait Implementations§
source§impl Debug for LineBuilderError
impl Debug for LineBuilderError
source§impl Display for LineBuilderError
impl Display for LineBuilderError
source§impl Error for LineBuilderError
impl Error for LineBuilderError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<LineBuilderError> for Error
impl From<LineBuilderError> for Error
source§fn from(source: LineBuilderError) -> Self
fn from(source: LineBuilderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for LineBuilderError
impl Send for LineBuilderError
impl Sync for LineBuilderError
impl Unpin for LineBuilderError
impl UnwindSafe for LineBuilderError
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