pub struct Proxy { /* private fields */ }
Expand description
Simple class representing a Proxy configuration.
An instance of this class can be used through ConnectionOptions.setProxy()
to instruct
a LightstreamerClient
to connect to the Lightstreamer Server passing through a proxy.
§Parameters
proxy_type
: the proxy typehost
: the proxy hostport
: the proxy portuser
: the user name to be used to validate against the proxy. Optional.password
: the password to be used to validate against the proxy. Optional.
Implementations§
Source§impl Proxy
impl Proxy
Sourcepub fn new(
proxy_type: ProxyType,
host: String,
port: u16,
user: Option<String>,
password: Option<String>,
) -> Self
pub fn new( proxy_type: ProxyType, host: String, port: u16, user: Option<String>, password: Option<String>, ) -> Self
Creates a new instance of Proxy
.
§Parameters
proxy_type
: the proxy typehost
: the proxy hostport
: the proxy portuser
: the user name to be used to validate against the proxy. Optional.password
: the password to be used to validate against the proxy. Optional.
Sourcepub fn get_proxy_type(&self) -> &ProxyType
pub fn get_proxy_type(&self) -> &ProxyType
Returns the proxy type.
Sourcepub fn get_password(&self) -> Option<&String>
pub fn get_password(&self) -> Option<&String>
Returns the proxy password.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Proxy
impl RefUnwindSafe for Proxy
impl Send for Proxy
impl Sync for Proxy
impl Unpin for Proxy
impl UnwindSafe for Proxy
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