Struct OutOfRangeError

struct OutOfRangeError(_)

Represents error when converting TimeDelta to/from a standard library implementation

The std::time::Duration supports a range from zero to u64::MAX seconds, while this module supports signed range of up to i64::MAX of milliseconds.

Implementations

impl Clone for OutOfRangeError

fn clone(self: &Self) -> OutOfRangeError

impl Copy for OutOfRangeError

impl Debug for OutOfRangeError

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Display for OutOfRangeError

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Eq for OutOfRangeError

impl Error for OutOfRangeError

fn description(self: &Self) -> &str

impl Freeze for OutOfRangeError

impl PartialEq for OutOfRangeError

fn eq(self: &Self, other: &OutOfRangeError) -> bool

impl RefUnwindSafe for OutOfRangeError

impl Send for OutOfRangeError

impl StructuralPartialEq for OutOfRangeError

impl Sync for OutOfRangeError

impl Unpin for OutOfRangeError

impl UnsafeUnpin for OutOfRangeError

impl UnwindSafe for OutOfRangeError

impl<T> Any for OutOfRangeError

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for OutOfRangeError

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for OutOfRangeError

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for OutOfRangeError

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for OutOfRangeError

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for OutOfRangeError

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> ToString for OutOfRangeError

fn to_string(self: &Self) -> String

impl<T, U> Into for OutOfRangeError

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for OutOfRangeError

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for OutOfRangeError

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>