pub struct NetworkSettings {
pub is_wifi: Option<bool>,
pub proxy_used: Option<bool>,
pub d_h_c_p_enabled: Option<bool>,
pub network_name: Option<String>,
pub auth_type: Option<String>,
pub i_p_address: Option<String>,
pub sub_mask: Option<String>,
pub gate_way: Option<String>,
pub main_d_n_s: Option<String>,
pub sub_d_n_s: Option<String>,
pub proxy_server: Option<String>,
pub proxy_port: Option<String>,
}
Fields
is_wifi: Option<bool>
proxy_used: Option<bool>
d_h_c_p_enabled: Option<bool>
network_name: Option<String>
auth_type: Option<String>
i_p_address: Option<String>
sub_mask: Option<String>
gate_way: Option<String>
main_d_n_s: Option<String>
sub_d_n_s: Option<String>
proxy_server: Option<String>
proxy_port: Option<String>
Implementations
sourceimpl NetworkSettings
impl NetworkSettings
pub fn new<F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12>(
is_wifi: F1,
proxy_used: F2,
d_h_c_p_enabled: F3,
network_name: F4,
auth_type: F5,
i_p_address: F6,
sub_mask: F7,
gate_way: F8,
main_d_n_s: F9,
sub_d_n_s: F10,
proxy_server: F11,
proxy_port: F12
) -> NetworkSettingswhere
F1: Into<Option<bool>>,
F2: Into<Option<bool>>,
F3: Into<Option<bool>>,
F4: Into<Option<String>>,
F5: Into<Option<String>>,
F6: Into<Option<String>>,
F7: Into<Option<String>>,
F8: Into<Option<String>>,
F9: Into<Option<String>>,
F10: Into<Option<String>>,
F11: Into<Option<String>>,
F12: Into<Option<String>>,
pub fn read_from_in_protocol(
i_prot: &mut dyn TInputProtocol
) -> Result<NetworkSettings>
pub fn write_to_out_protocol(
&self,
o_prot: &mut dyn TOutputProtocol
) -> Result<()>
Trait Implementations
sourceimpl Clone for NetworkSettings
impl Clone for NetworkSettings
sourcefn clone(&self) -> NetworkSettings
fn clone(&self) -> NetworkSettings
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for NetworkSettings
impl Debug for NetworkSettings
sourceimpl Default for NetworkSettings
impl Default for NetworkSettings
sourceimpl Hash for NetworkSettings
impl Hash for NetworkSettings
sourceimpl Ord for NetworkSettings
impl Ord for NetworkSettings
sourcefn cmp(&self, other: &NetworkSettings) -> Ordering
fn cmp(&self, other: &NetworkSettings) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<NetworkSettings> for NetworkSettings
impl PartialEq<NetworkSettings> for NetworkSettings
sourcefn eq(&self, other: &NetworkSettings) -> bool
fn eq(&self, other: &NetworkSettings) -> bool
sourceimpl PartialOrd<NetworkSettings> for NetworkSettings
impl PartialOrd<NetworkSettings> for NetworkSettings
sourcefn partial_cmp(&self, other: &NetworkSettings) -> Option<Ordering>
fn partial_cmp(&self, other: &NetworkSettings) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for NetworkSettings
impl StructuralEq for NetworkSettings
impl StructuralPartialEq for NetworkSettings
Auto Trait Implementations
impl RefUnwindSafe for NetworkSettings
impl Send for NetworkSettings
impl Sync for NetworkSettings
impl Unpin for NetworkSettings
impl UnwindSafe for NetworkSettings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more