pub struct UpstreamSpec<'a> {
pub scheme: UpstreamScheme,
pub host: &'a str,
pub port: u16,
pub strategy: UpstreamStrategy<'a>,
pub tls_connector: &'a TlsConnector,
}Expand description
Description of the upstream the caller wants to reach.
Fields§
§scheme: UpstreamScheme§host: &'a str§port: u16§strategy: UpstreamStrategy<'a>§tls_connector: &'a TlsConnectorTLS connector to use for an Https scheme. Reverse-proxy callers
pass either the route’s per-route connector (custom CA / mTLS) or
the shared default; intercept callers do the same.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for UpstreamSpec<'a>
impl<'a> !UnwindSafe for UpstreamSpec<'a>
impl<'a> Freeze for UpstreamSpec<'a>
impl<'a> Send for UpstreamSpec<'a>
impl<'a> Sync for UpstreamSpec<'a>
impl<'a> Unpin for UpstreamSpec<'a>
impl<'a> UnsafeUnpin for UpstreamSpec<'a>
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