pub(crate) struct Seconds(Duration);
Tuple Fields§
§0: Duration
Implementations§
Trait Implementations§
source§impl<'a> From<&'a Seconds> for HeaderValue
impl<'a> From<&'a Seconds> for HeaderValue
source§fn from(secs: &'a Seconds) -> HeaderValue
fn from(secs: &'a Seconds) -> HeaderValue
Converts to this type from the input type.
source§impl Ord for Seconds
impl Ord for Seconds
source§impl PartialEq for Seconds
impl PartialEq for Seconds
source§impl PartialOrd for Seconds
impl PartialOrd for Seconds
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFromValues for Seconds
impl TryFromValues for Seconds
source§fn try_from_values<'i, I>(values: &mut I) -> Result<Self, Error>where
I: Iterator<Item = &'i HeaderValue>,
fn try_from_values<'i, I>(values: &mut I) -> Result<Self, Error>where
I: Iterator<Item = &'i HeaderValue>,
Try to convert from the values into an instance of
Self
.impl Copy for Seconds
impl Eq for Seconds
impl StructuralPartialEq for Seconds
Auto Trait Implementations§
impl Freeze for Seconds
impl RefUnwindSafe for Seconds
impl Send for Seconds
impl Sync for Seconds
impl Unpin for Seconds
impl UnwindSafe for Seconds
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