pub struct CaptureProxy { /* private fields */ }Expand description
A bound, running capture proxy.
Implementations§
Source§impl CaptureProxy
impl CaptureProxy
Sourcepub async fn bind(
id: impl Into<String>,
upstream: &str,
) -> Result<Self, RecordError>
pub async fn bind( id: impl Into<String>, upstream: &str, ) -> Result<Self, RecordError>
Bind a capture proxy on loopback, forwarding to upstream.
Loopback-only, like the serving edge: a proxy that relays an agent’s traffic — and holds the credential to do it — has no business being reachable off the machine. Port 0 lets the OS pick, which is what keeps concurrent recordings from colliding.
Sourcepub fn addr(&self) -> SocketAddr
pub fn addr(&self) -> SocketAddr
The address the proxy is bound to.
Auto Trait Implementations§
impl Freeze for CaptureProxy
impl RefUnwindSafe for CaptureProxy
impl Send for CaptureProxy
impl Sync for CaptureProxy
impl Unpin for CaptureProxy
impl UnsafeUnpin for CaptureProxy
impl UnwindSafe for CaptureProxy
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