pub enum LeaseDuration {
Infinite,
Seconds(u8),
}
Variants§
Trait Implementations§
Source§impl Clone for LeaseDuration
impl Clone for LeaseDuration
Source§fn clone(&self) -> LeaseDuration
fn clone(&self) -> LeaseDuration
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 LeaseDuration
impl Debug for LeaseDuration
Source§impl From<Duration> for LeaseDuration
impl From<Duration> for LeaseDuration
Source§impl Header for LeaseDuration
impl Header for LeaseDuration
fn name(&self) -> HeaderName
fn value(&self) -> HeaderValue
Auto Trait Implementations§
impl Freeze for LeaseDuration
impl RefUnwindSafe for LeaseDuration
impl Send for LeaseDuration
impl Sync for LeaseDuration
impl Unpin for LeaseDuration
impl UnwindSafe for LeaseDuration
Blanket Implementations§
Source§impl<T> AsHeaders for Twhere
T: Header,
impl<T> AsHeaders for Twhere
T: Header,
type Iter = IntoIter<(HeaderName, HeaderValue)>
fn as_headers(&self) -> <T as AsHeaders>::Iter
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