pub struct FileTimeRangeError(/* private fields */);
Expand description
The error type indicating that a FileTime
was out of
range.
Implementations§
Source§impl FileTimeRangeError
impl FileTimeRangeError
Sourcepub const fn kind(&self) -> FileTimeRangeErrorKind
pub const fn kind(&self) -> FileTimeRangeErrorKind
Returns the corresponding FileTimeRangeErrorKind
for this error.
§Examples
assert_eq!(
FileTime::from_unix_time_secs(i64::MIN).unwrap_err().kind(),
FileTimeRangeErrorKind::Negative
);
assert_eq!(
FileTime::from_unix_time_secs(i64::MAX).unwrap_err().kind(),
FileTimeRangeErrorKind::Overflow
);
Trait Implementations§
Source§impl Clone for FileTimeRangeError
impl Clone for FileTimeRangeError
Source§fn clone(&self) -> FileTimeRangeError
fn clone(&self) -> FileTimeRangeError
Returns a copy of the value. Read more
1.0.0 · 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 FileTimeRangeError
impl Debug for FileTimeRangeError
Source§impl Display for FileTimeRangeError
impl Display for FileTimeRangeError
Source§impl Error for FileTimeRangeError
Available on crate feature std
only.
impl Error for FileTimeRangeError
Available on crate feature
std
only.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<FileTimeRangeErrorKind> for FileTimeRangeError
impl From<FileTimeRangeErrorKind> for FileTimeRangeError
Source§fn from(kind: FileTimeRangeErrorKind) -> Self
fn from(kind: FileTimeRangeErrorKind) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FileTimeRangeError
impl PartialEq for FileTimeRangeError
impl Copy for FileTimeRangeError
impl Eq for FileTimeRangeError
impl StructuralPartialEq for FileTimeRangeError
Auto Trait Implementations§
impl Freeze for FileTimeRangeError
impl RefUnwindSafe for FileTimeRangeError
impl Send for FileTimeRangeError
impl Sync for FileTimeRangeError
impl Unpin for FileTimeRangeError
impl UnwindSafe for FileTimeRangeError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)