pub struct LeaseLength {
pub default_seconds: u32,
pub max_seconds: u32,
}
Expand description
Parameters controlling lease duration allocation. Per, https://tools.ietf.org/html/rfc2131#section-3.3, times are represented as relative times.
Fields§
§default_seconds: u32
The default lease duration assigned by the server.
max_seconds: u32
The maximum allowable lease duration which a client can request.
Trait Implementations§
Source§impl Clone for LeaseLength
impl Clone for LeaseLength
Source§fn clone(&self) -> LeaseLength
fn clone(&self) -> LeaseLength
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 LeaseLength
impl Debug for LeaseLength
Source§impl<'de> Deserialize<'de> for LeaseLength
impl<'de> Deserialize<'de> for LeaseLength
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FidlCompatible<LeaseLength> for LeaseLength
impl FidlCompatible<LeaseLength> for LeaseLength
type FromError = Error
type IntoError = Infallible
fn try_from_fidl(fidl: LeaseLength) -> Result<Self, Self::FromError>
fn try_into_fidl(self) -> Result<LeaseLength, Self::IntoError>
Source§impl PartialEq for LeaseLength
impl PartialEq for LeaseLength
Source§impl Serialize for LeaseLength
impl Serialize for LeaseLength
impl StructuralPartialEq for LeaseLength
Auto Trait Implementations§
impl Freeze for LeaseLength
impl RefUnwindSafe for LeaseLength
impl Send for LeaseLength
impl Sync for LeaseLength
impl Unpin for LeaseLength
impl UnwindSafe for LeaseLength
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoAny for T
impl<T> IntoAny for T
§impl<F, C> IntoFidlExt<F> for Cwhere
C: FidlCompatible<F, IntoError = Infallible>,
impl<F, C> IntoFidlExt<F> for Cwhere
C: FidlCompatible<F, IntoError = Infallible>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.