pub struct DirectConnector { /* private fields */ }Expand description
Direct outbound connector (no upstream proxy).
Implementations§
Source§impl DirectConnector
impl DirectConnector
pub fn new(client: Arc<HttpsClient>) -> Self
Trait Implementations§
Source§impl OutboundConnector for DirectConnector
impl OutboundConnector for DirectConnector
fn send_request<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
req: Request<HttpBody>,
_target_host: &'life1 str,
_target_port: u16,
_flow: &'life2 mut Flow,
) -> Pin<Box<dyn Future<Output = Result<Response<Incoming>, UpstreamError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn upstream_proxy_url(&self) -> Option<&str>
fn upstream_proxy_url(&self) -> Option<&str>
Returns the upstream proxy URL if this connector routes through one.
Used for circuit breaker keying and status reporting.
Auto Trait Implementations§
impl !RefUnwindSafe for DirectConnector
impl !UnwindSafe for DirectConnector
impl Freeze for DirectConnector
impl Send for DirectConnector
impl Sync for DirectConnector
impl Unpin for DirectConnector
impl UnsafeUnpin for DirectConnector
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