pub struct Healthcheck { /* private fields */ }Expand description
A service health-check definition.
Implementations§
Source§impl Healthcheck
impl Healthcheck
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete health-check mapping span.
Sourcepub const fn test(&self) -> Option<&HealthcheckTest>
pub const fn test(&self) -> Option<&HealthcheckTest>
Returns the health command with its scalar/list form retained.
Sourcepub const fn interval(&self) -> Option<&Located<HealthcheckDuration>>
pub const fn interval(&self) -> Option<&Located<HealthcheckDuration>>
Returns the explicitly authored interval.
Sourcepub const fn timeout(&self) -> Option<&Located<HealthcheckDuration>>
pub const fn timeout(&self) -> Option<&Located<HealthcheckDuration>>
Returns the explicitly authored timeout.
Sourcepub const fn retries(&self) -> Option<&Located<HealthcheckRetries>>
pub const fn retries(&self) -> Option<&Located<HealthcheckRetries>>
Returns the explicitly authored retry count.
Sourcepub const fn start_period(&self) -> Option<&Located<HealthcheckDuration>>
pub const fn start_period(&self) -> Option<&Located<HealthcheckDuration>>
Returns the explicitly authored start period.
Sourcepub const fn start_interval(&self) -> Option<&Located<HealthcheckDuration>>
pub const fn start_interval(&self) -> Option<&Located<HealthcheckDuration>>
Returns the explicitly authored start interval.
Sourcepub const fn disable(&self) -> Option<&Located<BooleanValue>>
pub const fn disable(&self) -> Option<&Located<BooleanValue>>
Returns whether the image health check is explicitly disabled.
Sourcepub fn is_disabled(&self) -> bool
pub fn is_disabled(&self) -> bool
Reports whether the authored health check is explicitly disabled.
Sourcepub fn extension_fields(&self) -> &[FieldReference]
pub fn extension_fields(&self) -> &[FieldReference]
Returns retained x- fields.
Sourcepub fn unknown_fields(&self) -> &[FieldReference]
pub fn unknown_fields(&self) -> &[FieldReference]
Returns unrecognized health-check fields.
Trait Implementations§
Source§impl Clone for Healthcheck
impl Clone for Healthcheck
Source§fn clone(&self) -> Healthcheck
fn clone(&self) -> Healthcheck
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 Healthcheck
impl Debug for Healthcheck
impl Eq for Healthcheck
Source§impl PartialEq for Healthcheck
impl PartialEq for Healthcheck
impl StructuralPartialEq for Healthcheck
Auto Trait Implementations§
impl Freeze for Healthcheck
impl RefUnwindSafe for Healthcheck
impl Send for Healthcheck
impl Sync for Healthcheck
impl Unpin for Healthcheck
impl UnsafeUnpin for Healthcheck
impl UnwindSafe for Healthcheck
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