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. Unlike
AgentProtocolRouter, this router requires an exact version match: the
conductor has already selected and canonicalized the wire protocol before
sending _proxy/initialize to a proxy.
Implementations§
Trait Implementations§
Source§impl ConnectTo<Conductor> for ProxyProtocolRouter
impl ConnectTo<Conductor> for ProxyProtocolRouter
Source§impl Debug for ProxyProtocolRouter
impl Debug for ProxyProtocolRouter
Source§impl Default for ProxyProtocolRouter
impl Default for ProxyProtocolRouter
Source§fn default() -> ProxyProtocolRouter
fn default() -> ProxyProtocolRouter
Returns the “default value” for a type. Read more
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.