pub struct ProxyProtocolRouter { /* private fields */ }Available on crate feature
unstable_protocol_v2 only.Expand description
Proxy component that routes each connection to a configured protocol implementation.
Use Proxy::protocol_router to start the builder, then add stable-v1 and
draft-v2 proxy implementations independently. Like AgentProtocolRouter,
it selects the highest configured version at or below the one
proxy/initialize requests.
The with_v1 and with_v2 slots take any ConnectTo<Conductor>; nothing checks that an
implementation speaks the slot’s version. Put a .v1() implementation in
with_v1 and a .v2() implementation in with_v2.
Implementations§
Trait Implementations§
Source§impl ConnectTo<Conductor> for ProxyProtocolRouter
impl ConnectTo<Conductor> for ProxyProtocolRouter
Source§async fn connect_to(self, conductor: impl ConnectTo<Proxy>) -> Result<(), Error>
async fn connect_to(self, conductor: impl ConnectTo<Proxy>) -> Result<(), Error>
Connect this component to another component. Read more
Source§fn into_channel_and_future(self) -> (Channel, Option<ConnectionDriver>)where
Self: Sized,
fn into_channel_and_future(self) -> (Channel, Option<ConnectionDriver>)where
Self: Sized,
Convert this component into a channel endpoint and optional owned driver. Read more
Source§impl Debug for ProxyProtocolRouter
impl Debug for ProxyProtocolRouter
Auto Trait Implementations§
impl !RefUnwindSafe for ProxyProtocolRouter
impl !Sync for ProxyProtocolRouter
impl !UnwindSafe for ProxyProtocolRouter
impl Freeze for ProxyProtocolRouter
impl Send for ProxyProtocolRouter
impl Unpin for ProxyProtocolRouter
impl UnsafeUnpin for ProxyProtocolRouter
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
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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.