Enum aws_config::timeout::ConfigError
source · [−]#[non_exhaustive]
pub enum ConfigError {
InvalidTimeout {
name: Cow<'static, str>,
reason: Cow<'static, str>,
set_by: Cow<'static, str>,
},
ParseError {
name: Cow<'static, str>,
set_by: Cow<'static, str>,
source: Box<dyn Error + 'static, Global>,
},
}
Expand description
An error that occurs during construction of a timeout::Config
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.
InvalidTimeout
Fields
A timeout value was set to an invalid value:
- Any number less than 0
- Infinity or negative infinity
NaN
ParseError
Fields
The timeout value couln’t be parsed as an f32
Trait Implementations
sourceimpl Debug for ConfigError
impl Debug for ConfigError
Auto Trait Implementations
impl !RefUnwindSafe for ConfigError
impl !Send for ConfigError
impl !Sync for ConfigError
impl Unpin for ConfigError
impl !UnwindSafe for ConfigError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more