pub struct TimeOverflowError { /* private fields */ }
Expand description
Input time in seconds was too large to be encoded to a 16 bit 512 second interval.
Implementations§
§impl TimeOverflowError
impl TimeOverflowError
pub fn new(seconds: u32) -> TimeOverflowError
pub fn new(seconds: u32) -> TimeOverflowError
Creates a new TimeOverflowError
using seconds
.
§Panics
If seconds
would not actually overflow a u16
.
Trait Implementations§
§impl Clone for TimeOverflowError
impl Clone for TimeOverflowError
§fn clone(&self) -> TimeOverflowError
fn clone(&self) -> TimeOverflowError
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 more§impl Debug for TimeOverflowError
impl Debug for TimeOverflowError
§impl Display for TimeOverflowError
impl Display for TimeOverflowError
§impl Error for TimeOverflowError
impl Error for TimeOverflowError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 PartialEq for TimeOverflowError
impl PartialEq for TimeOverflowError
§fn eq(&self, other: &TimeOverflowError) -> bool
fn eq(&self, other: &TimeOverflowError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TimeOverflowError
impl StructuralPartialEq for TimeOverflowError
Auto Trait Implementations§
impl Freeze for TimeOverflowError
impl RefUnwindSafe for TimeOverflowError
impl Send for TimeOverflowError
impl Sync for TimeOverflowError
impl Unpin for TimeOverflowError
impl UnwindSafe for TimeOverflowError
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more