pub enum IniSettingsRetentionError {
RetentionUnderflowsSessionDate {
session_date: IniSessionDate,
months: NonZeroU16,
max_months: u16,
},
LockedAfterFirstFrame,
LockedAfterSettingsLoad,
InvalidNativeSessionDate {
raw: i32,
},
InvalidNativeAutoDiscardMonths {
raw: i32,
},
InvalidNativeState {
reason: &'static str,
},
}Expand description
Errors returned while reading or applying IniSettingsRetention.
Variants§
RetentionUnderflowsSessionDate
The requested period would underflow Dear ImGui’s packed date year.
Fields
§
session_date: IniSessionDateDate used as the retention upper bound.
§
months: NonZeroU16Requested automatic-discard period.
LockedAfterFirstFrame
The session date is immutable after Dear ImGui has started its first frame.
LockedAfterSettingsLoad
Automatic cleanup cannot be changed after settings have already been loaded.
InvalidNativeSessionDate
Native platform state contains a date outside the safe packed range.
InvalidNativeAutoDiscardMonths
Native IO state contains an unsupported automatic-discard period.
InvalidNativeState
Native settings fields encode a combination that cannot be represented safely.
Trait Implementations§
Source§impl Clone for IniSettingsRetentionError
impl Clone for IniSettingsRetentionError
Source§fn clone(&self) -> IniSettingsRetentionError
fn clone(&self) -> IniSettingsRetentionError
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 moreimpl Copy for IniSettingsRetentionError
Source§impl Debug for IniSettingsRetentionError
impl Debug for IniSettingsRetentionError
Source§impl Display for IniSettingsRetentionError
impl Display for IniSettingsRetentionError
impl Eq for IniSettingsRetentionError
Source§impl Error for IniSettingsRetentionError
impl Error for IniSettingsRetentionError
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()
impl StructuralPartialEq for IniSettingsRetentionError
Auto Trait Implementations§
impl Freeze for IniSettingsRetentionError
impl RefUnwindSafe for IniSettingsRetentionError
impl Send for IniSettingsRetentionError
impl Sync for IniSettingsRetentionError
impl Unpin for IniSettingsRetentionError
impl UnsafeUnpin for IniSettingsRetentionError
impl UnwindSafe for IniSettingsRetentionError
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