pub enum ParamValueParseError {
FailedToExtractFloat(Option<String>),
FailedToExtractInt(Option<String>),
FailedToExtractString,
FailedToExtractBuffer,
}Expand description
Errors that might occur while trying to convert to a particular value type
from whatever type might be stored in a ParamValue-like object.
Variants§
FailedToExtractFloat(Option<String>)
The value could not be interpreted as a floating point number.
FailedToExtractInt(Option<String>)
The value could not be interpreted as an integer.
FailedToExtractString
The value could not be interpreted as a string.
FailedToExtractBuffer
The value could not be interpreted as a byte buffer.
Trait Implementations§
Source§impl Clone for ParamValueParseError
impl Clone for ParamValueParseError
Source§fn clone(&self) -> ParamValueParseError
fn clone(&self) -> ParamValueParseError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParamValueParseError
impl Debug for ParamValueParseError
Source§impl Display for ParamValueParseError
impl Display for ParamValueParseError
Source§impl Error for ParamValueParseError
impl Error for ParamValueParseError
1.30.0 · 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<ParamValueParseError> for Error
impl From<ParamValueParseError> for Error
Source§fn from(value: ParamValueParseError) -> Self
fn from(value: ParamValueParseError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParamValueParseError
impl PartialEq for ParamValueParseError
impl StructuralPartialEq for ParamValueParseError
Auto Trait Implementations§
impl Freeze for ParamValueParseError
impl RefUnwindSafe for ParamValueParseError
impl Send for ParamValueParseError
impl Sync for ParamValueParseError
impl Unpin for ParamValueParseError
impl UnsafeUnpin for ParamValueParseError
impl UnwindSafe for ParamValueParseError
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