Struct quilkin::xds::config::core::v3::health_check::HttpHealthCheck
source · [−]pub struct HttpHealthCheck {
pub host: String,
pub path: String,
pub send: Option<Payload>,
pub receive: Option<Payload>,
pub request_headers_to_add: Vec<HeaderValueOption>,
pub request_headers_to_remove: Vec<String>,
pub expected_statuses: Vec<Int64Range>,
pub retriable_statuses: Vec<Int64Range>,
pub codec_client_type: i32,
pub service_name_matcher: Option<StringMatcher>,
}
Fields
host: String
path: String
send: Option<Payload>
receive: Option<Payload>
request_headers_to_add: Vec<HeaderValueOption>
request_headers_to_remove: Vec<String>
expected_statuses: Vec<Int64Range>
retriable_statuses: Vec<Int64Range>
codec_client_type: i32
service_name_matcher: Option<StringMatcher>
Implementations
sourceimpl HttpHealthCheck
impl HttpHealthCheck
sourcepub fn codec_client_type(&self) -> CodecClientType
pub fn codec_client_type(&self) -> CodecClientType
Returns the enum value of codec_client_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_codec_client_type(&mut self, value: CodecClientType)
pub fn set_codec_client_type(&mut self, value: CodecClientType)
Sets codec_client_type
to the provided enum value.
Trait Implementations
sourceimpl Clone for HttpHealthCheck
impl Clone for HttpHealthCheck
sourcefn clone(&self) -> HttpHealthCheck
fn clone(&self) -> HttpHealthCheck
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for HttpHealthCheck
impl Debug for HttpHealthCheck
sourceimpl Default for HttpHealthCheck
impl Default for HttpHealthCheck
sourceimpl Message for HttpHealthCheck
impl Message for HttpHealthCheck
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
sourcefn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Encodes the message to a buffer. Read more
sourcefn encode_to_vec(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn encode_to_vec(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Encodes the message to a newly allocated buffer.
sourcefn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Encodes the message with a length-delimiter to a buffer. Read more
sourcefn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Encodes the message with a length-delimiter to a newly allocated buffer.
sourcefn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
sourcefn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
sourcefn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresourcefn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
. Read moresourceimpl PartialEq<HttpHealthCheck> for HttpHealthCheck
impl PartialEq<HttpHealthCheck> for HttpHealthCheck
sourcefn eq(&self, other: &HttpHealthCheck) -> bool
fn eq(&self, other: &HttpHealthCheck) -> bool
impl StructuralPartialEq for HttpHealthCheck
Auto Trait Implementations
impl RefUnwindSafe for HttpHealthCheck
impl Send for HttpHealthCheck
impl Sync for HttpHealthCheck
impl Unpin for HttpHealthCheck
impl UnwindSafe for HttpHealthCheck
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> FromRef<T> for Twhere
T: Clone,
impl<T> FromRef<T> for Twhere
T: Clone,
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request