pub struct ResolvedService {
pub name: String,
pub backends: Vec<SocketAddr>,
pub use_tls: bool,
pub sni_hostname: String,
pub expose: ExposeType,
pub protocol: Protocol,
pub strip_prefix: bool,
pub path_prefix: String,
pub target_port: u16,
}Expand description
Fully-resolved service information returned by the registry.
Fields§
§name: StringService name (e.g. “api”, “frontend”)
backends: Vec<SocketAddr>Backend addresses for load balancing
use_tls: boolWhether to use TLS for upstream connections
sni_hostname: StringSNI hostname for TLS connections
expose: ExposeTypeExposure type (public / internal)
protocol: ProtocolProtocol (http, https, tcp, udp, websocket)
strip_prefix: boolWhether to strip the matched path prefix before forwarding
path_prefix: StringThe path prefix this service was registered with
target_port: u16The port the container actually listens on
Trait Implementations§
Source§impl Clone for ResolvedService
impl Clone for ResolvedService
Source§fn clone(&self) -> ResolvedService
fn clone(&self) -> ResolvedService
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResolvedService
impl RefUnwindSafe for ResolvedService
impl Send for ResolvedService
impl Sync for ResolvedService
impl Unpin for ResolvedService
impl UnsafeUnpin for ResolvedService
impl UnwindSafe for ResolvedService
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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