pub struct InvalidInstantError {
pub secs: i64,
pub subsec_nanos: i32,
}Expand description
Error returned when creating an Instant with mixed-sign components.
Both secs and subsec_nanos must have the same sign (or be zero).
A positive secs with negative subsec_nanos (or vice versa) is invalid.
Fields§
§secs: i64The seconds component that was passed.
subsec_nanos: i32The sub-second nanoseconds component that was passed.
Trait Implementations§
Source§impl Clone for InvalidInstantError
impl Clone for InvalidInstantError
Source§fn clone(&self) -> InvalidInstantError
fn clone(&self) -> InvalidInstantError
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 InvalidInstantError
impl Debug for InvalidInstantError
Source§impl Display for InvalidInstantError
impl Display for InvalidInstantError
impl Eq for InvalidInstantError
Source§impl Error for InvalidInstantError
Available on crate feature std only.
impl Error for InvalidInstantError
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 PartialEq for InvalidInstantError
impl PartialEq for InvalidInstantError
Source§fn eq(&self, other: &InvalidInstantError) -> bool
fn eq(&self, other: &InvalidInstantError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InvalidInstantError
Auto Trait Implementations§
impl Freeze for InvalidInstantError
impl RefUnwindSafe for InvalidInstantError
impl Send for InvalidInstantError
impl Sync for InvalidInstantError
impl Unpin for InvalidInstantError
impl UnsafeUnpin for InvalidInstantError
impl UnwindSafe for InvalidInstantError
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