[][src]Trait gip::Provider

pub trait Provider {
    pub fn get_addr(&mut self) -> Result<GlobalAddress, Error>;
pub fn get_name(&self) -> String;
pub fn get_type(&self) -> ProviderInfoType;
pub fn set_timeout(&mut self, timeout: usize);
pub fn set_proxy(&mut self, host: &str, port: u16); }

Provider describes types that can provide global address information

Required methods

pub fn get_addr(&mut self) -> Result<GlobalAddress, Error>[src]

Get global IP address

pub fn get_name(&self) -> String[src]

Get provider name

pub fn get_type(&self) -> ProviderInfoType[src]

Get provider type

pub fn set_timeout(&mut self, timeout: usize)[src]

Set timeout by milliseconds

pub fn set_proxy(&mut self, host: &str, port: u16)[src]

Set proxy

Loading content...

Implementors

impl Provider for ProviderAny[src]

impl Provider for ProviderDefaultV4[src]

impl Provider for ProviderDefaultV6[src]

impl Provider for ProviderJson[src]

impl Provider for ProviderPlane[src]

Loading content...