Struct rustem_proxy::SystemProxy
source · pub struct SystemProxy {
pub is_enabled: bool,
pub protocol: Protocol,
pub host: String,
pub port: u16,
pub bypass: String,
}Expand description
Example (set):
use rustem_proxy::SystemProxy;
SystemProxy::set(SystemProxy {
is_enabled: true,
host: "127.0.0.1".to_string(),
port: 61001,
bypass: "".to_string(),
protocol: rustem_proxy::Protocol::HTTP,
});Example (get):
use rustem_proxy::SystemProxy;
let proxy = SystemProxy::get();
println!("Is enabled: {}", proxy.is_enabled);
println!("host: {}", proxy.host);
println!("port: {}", proxy.port);
println!("protocol: {:?}", proxy.protocol);Fields§
§is_enabled: bool§protocol: Protocol§host: String§port: u16§bypass: StringImplementations§
source§impl SystemProxy
impl SystemProxy
Auto Trait Implementations§
impl RefUnwindSafe for SystemProxy
impl Send for SystemProxy
impl Sync for SystemProxy
impl Unpin for SystemProxy
impl UnwindSafe for SystemProxy
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