pub struct ProxyServer { /* private fields */ }Expand description
Configures the listening address for the experimental proxy adapter.
Implementations§
Source§impl ProxyServer
impl ProxyServer
Sourcepub fn new(listen_addr: SocketAddr, upstream_addr: SocketAddr) -> Self
pub fn new(listen_addr: SocketAddr, upstream_addr: SocketAddr) -> Self
Creates a relay server with explicit listener and upstream addresses.
Auto Trait Implementations§
impl Freeze for ProxyServer
impl RefUnwindSafe for ProxyServer
impl Send for ProxyServer
impl Sync for ProxyServer
impl Unpin for ProxyServer
impl UnsafeUnpin for ProxyServer
impl UnwindSafe for ProxyServer
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