pub struct ProxyServer { /* private fields */ }Expand description
HTTP server for the proxy.
Implementations§
Source§impl ProxyServer
impl ProxyServer
Sourcepub fn new(config: ServerConfig, core: Arc<ProxyCore>) -> Self
pub fn new(config: ServerConfig, core: Arc<ProxyCore>) -> Self
Create a new proxy server with the given configuration and proxy core.
Sourcepub async fn start(&self) -> Result<(), ProxyError>
pub async fn start(&self) -> Result<(), ProxyError>
Start the proxy server.
Trait Implementations§
Source§impl Clone for ProxyServer
impl Clone for ProxyServer
Source§fn clone(&self) -> ProxyServer
fn clone(&self) -> ProxyServer
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProxyServer
impl !RefUnwindSafe for ProxyServer
impl Send for ProxyServer
impl Sync for ProxyServer
impl Unpin 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