pub struct GrpcService {
pub timeout: Option<Duration>,
pub initial_metadata: Vec<HeaderValue>,
pub retry_policy: Option<RetryPolicy>,
pub target_specifier: Option<TargetSpecifier>,
}
Expand description
gRPC service configuration. This is used by :ref:ApiConfigSource <envoy_v3_api_msg_config.core.v3.ApiConfigSource>
and filter configurations.
[#next-free-field: 7]
Fields§
§timeout: Option<Duration>
The timeout for the gRPC request. This is the timeout for a specific request.
initial_metadata: Vec<HeaderValue>
Additional metadata to include in streams initiated to the GrpcService. This can be used for
scenarios in which additional ad hoc authorization headers (e.g. x-foo-bar: baz-key
) are to
be injected. For more information, including details on header value syntax, see the
documentation on :ref:custom request headers <config_http_conn_man_headers_custom_request_headers>
.
retry_policy: Option<RetryPolicy>
Optional default retry policy for streams toward the service. If an async stream doesn’t have retry policy configured in its stream options, this retry policy is used.
target_specifier: Option<TargetSpecifier>
Trait Implementations§
Source§impl Clone for GrpcService
impl Clone for GrpcService
Source§fn clone(&self) -> GrpcService
fn clone(&self) -> GrpcService
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GrpcService
impl Debug for GrpcService
Source§impl Default for GrpcService
impl Default for GrpcService
Source§impl Message for GrpcService
impl Message for GrpcService
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.Source§impl Name for GrpcService
impl Name for GrpcService
Source§const NAME: &'static str = "GrpcService"
const NAME: &'static str = "GrpcService"
Message
.
This name is the same as it appears in the source .proto file, e.g. FooBar
.Source§const PACKAGE: &'static str = "envoy.config.core.v3"
const PACKAGE: &'static str = "envoy.config.core.v3"
.
, e.g. google.protobuf
.Source§fn full_name() -> String
fn full_name() -> String
Message
.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation
.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.Source§impl PartialEq for GrpcService
impl PartialEq for GrpcService
impl StructuralPartialEq for GrpcService
Auto Trait Implementations§
impl Freeze for GrpcService
impl RefUnwindSafe for GrpcService
impl Send for GrpcService
impl Sync for GrpcService
impl Unpin for GrpcService
impl UnwindSafe for GrpcService
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request