pub struct ProxyServer { /* private fields */ }
Implementations§
Source§impl ProxyServer
impl ProxyServer
pub fn new_with_proxy(port: i16, proxy: Proxy) -> Result<ProxyServer>
pub fn check_proxy(proxy: Proxy) -> Result<Proxy>
pub fn get_proxy(&self) -> Option<Proxy>
pub fn get_addr(&self) -> SocketAddr
pub fn get_duration(&self) -> Duration
pub fn set_proxy(&self, new_proxy: Proxy) -> Result<()>
pub fn start(&self) -> Result<()>
pub fn stop(&self)
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 moreSource§impl Debug for ProxyServer
impl Debug for ProxyServer
Auto 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