pub struct HealthcheckDuration(/* private fields */);Expand description
Raw-preserving duration shared by container health-check implementations.
Implementations§
Source§impl HealthcheckDuration
impl HealthcheckDuration
Sourcepub fn new(value: impl Into<String>) -> Result<Self, ModelError>
pub fn new(value: impl Into<String>) -> Result<Self, ModelError>
Creates a non-empty duration spelling without imposing one source format’s grammar.
Source adapters remain responsible for validating native duration syntax. Target adapters must report spellings that their selected implementation cannot represent.
§Errors
Returns ModelError::EmptyValue or ModelError::ContainsNul.
Trait Implementations§
Source§impl Clone for HealthcheckDuration
impl Clone for HealthcheckDuration
Source§fn clone(&self) -> HealthcheckDuration
fn clone(&self) -> HealthcheckDuration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HealthcheckDuration
impl Debug for HealthcheckDuration
impl Eq for HealthcheckDuration
Source§impl PartialEq for HealthcheckDuration
impl PartialEq for HealthcheckDuration
impl StructuralPartialEq for HealthcheckDuration
Auto Trait Implementations§
impl Freeze for HealthcheckDuration
impl RefUnwindSafe for HealthcheckDuration
impl Send for HealthcheckDuration
impl Sync for HealthcheckDuration
impl Unpin for HealthcheckDuration
impl UnsafeUnpin for HealthcheckDuration
impl UnwindSafe for HealthcheckDuration
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