pub enum SettingError {
InvalidName,
TimeZoneTooLong,
InvalidTimeZone(ParseError),
}Expand description
Why a setting is rejected.
Variants§
InvalidName
The name is empty, too long, or has a character that IANA names do not
use (only ASCII letters, digits, /, _, - and + are accepted).
TimeZoneTooLong
The TZ string is longer than MAXIMUM_TIME_ZONE_LENGTH.
InvalidTimeZone(ParseError)
The TZ string does not parse.
Trait Implementations§
Source§impl Clone for SettingError
impl Clone for SettingError
Source§fn clone(&self) -> SettingError
fn clone(&self) -> SettingError
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 SettingError
impl Debug for SettingError
Source§impl Display for SettingError
impl Display for SettingError
Source§impl PartialEq for SettingError
impl PartialEq for SettingError
Source§fn eq(&self, other: &SettingError) -> bool
fn eq(&self, other: &SettingError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SettingError
impl Eq for SettingError
impl StructuralPartialEq for SettingError
Auto Trait Implementations§
impl Freeze for SettingError
impl RefUnwindSafe for SettingError
impl Send for SettingError
impl Sync for SettingError
impl Unpin for SettingError
impl UnsafeUnpin for SettingError
impl UnwindSafe for SettingError
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