Trait ProbeExt

Source
pub trait ProbeExt {
    // Required methods
    fn http_get(path: impl AsRef<Path>, port: impl ToIntOrString) -> Self;
    fn tcp_socket(port: impl ToIntOrString) -> Self;
    fn grpc<'a>(port: i32, service: impl Into<Option<&'a str>>) -> Self;
    fn failure_threshold(self, threshold: i32) -> Self;
    fn success_threshold(self, threshold: i32) -> Self;
    fn initial_delay_seconds(self, seconds: i32) -> Self;
    fn period_seconds(self, seconds: i32) -> Self;
    fn timeout_seconds(self, seconds: i32) -> Self;
    fn termination_grace_period_seconds(self, seconds: i64) -> Self;
}
Expand description

Builders for corev1::Probe objects

Required Methods§

Source

fn http_get(path: impl AsRef<Path>, port: impl ToIntOrString) -> Self

HTTP get probe

Source

fn tcp_socket(port: impl ToIntOrString) -> Self

TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported

Source

fn grpc<'a>(port: i32, service: impl Into<Option<&'a str>>) -> Self

gRPC probe

Source

fn failure_threshold(self, threshold: i32) -> Self

Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.

Source

fn success_threshold(self, threshold: i32) -> Self

Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.

Source

fn initial_delay_seconds(self, seconds: i32) -> Self

Source

fn period_seconds(self, seconds: i32) -> Self

Source

fn timeout_seconds(self, seconds: i32) -> Self

Source

fn termination_grace_period_seconds(self, seconds: i64) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§