Struct bitcoin::relative::TimeOverflowError
source · 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§
source§impl TimeOverflowError
impl TimeOverflowError
sourcepub fn new(seconds: u32) -> TimeOverflowError
pub fn new(seconds: u32) -> TimeOverflowError
Trait Implementations§
source§impl Clone for TimeOverflowError
impl Clone for TimeOverflowError
source§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 moresource§impl Debug for TimeOverflowError
impl Debug for TimeOverflowError
source§impl Display for TimeOverflowError
impl Display for TimeOverflowError
source§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()
source§impl PartialEq<TimeOverflowError> for TimeOverflowError
impl PartialEq<TimeOverflowError> for TimeOverflowError
source§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 StructuralEq for TimeOverflowError
impl StructuralPartialEq for TimeOverflowError
Auto Trait Implementations§
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