pub struct ServiceSettings {
pub pod_selector: BTreeMap<String, String>,
pub pod_namespace: String,
pub provisioned: bool,
pub port_range: (u16, u16),
pub service_type: String,
}Available on crate feature
gateway-api only.Expand description
How Gateways’ Services are made.
Fields§
§pod_selector: BTreeMap<String, String>Labels of the pods that serve the traffic (the shared Deployment’s).
pod_namespace: StringTheir namespace. A Service only selects pods in its own namespace, so each Gateway’s Service has no selector: rws writes its EndpointSlice.
provisioned: boolProvisioned mode: each Gateway’s own pods (super::provision)
instead of pod_selector.
port_range: (u16, u16)Container ports to allocate from (inclusive).
service_type: StringLoadBalancer (default), NodePort or ClusterIP.
Implementations§
Source§impl ServiceSettings
impl ServiceSettings
Sourcepub fn pod_watch_labels(&self) -> BTreeMap<String, String>
pub fn pod_watch_labels(&self) -> BTreeMap<String, String>
The labels rws’s serving pods are watched by.
Trait Implementations§
Source§impl Clone for ServiceSettings
impl Clone for ServiceSettings
Source§fn clone(&self) -> ServiceSettings
fn clone(&self) -> ServiceSettings
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 ServiceSettings
impl Debug for ServiceSettings
Source§impl Default for ServiceSettings
impl Default for ServiceSettings
Source§fn default() -> ServiceSettings
fn default() -> ServiceSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ServiceSettings
impl RefUnwindSafe for ServiceSettings
impl Send for ServiceSettings
impl Sync for ServiceSettings
impl Unpin for ServiceSettings
impl UnsafeUnpin for ServiceSettings
impl UnwindSafe for ServiceSettings
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Available on crate feature
map-response-body only.Apply a transformation to the response body. Read more
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
Available on crate feature
trace only.High level tracing that classifies responses using HTTP status codes. Read more
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
Available on crate feature
trace only.High level tracing that classifies responses using gRPC headers. Read more