pub struct ProxyManager { /* private fields */ }
Implementations§
Source§impl ProxyManager
impl ProxyManager
pub async fn new(config: &Config) -> Self
pub fn default() -> Self
pub async fn proxies(&self) -> Vec<Proxy>
pub async fn servers(&self) -> Vec<ProxyServer>
pub async fn create_server( &self, proxy: Proxy, port: i16, ) -> Result<SocketAddr, ProxyError>
pub async fn set_proxies(&self, list: Vec<Proxy>)
pub async fn stop_server(&self, proxy: &Proxy) -> Result<(), ProxyError>
pub async fn rotate_proxy(&self) -> Result<(), ProxyError>
pub async fn start(&self) -> Result<(), ProxyError>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ProxyManager
impl !RefUnwindSafe for ProxyManager
impl Send for ProxyManager
impl Sync for ProxyManager
impl Unpin for ProxyManager
impl !UnwindSafe for ProxyManager
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