[]Struct gio::ProxyAddress

pub struct ProxyAddress(_, _);

Support for proxied InetSocketAddress.

Implements

ProxyAddressExt, InetSocketAddressExt, SocketAddressExt, glib::object::ObjectExt, SocketConnectableExt

Methods

impl ProxyAddress[src]

pub fn new<P: IsA<InetAddress>>(
    inetaddr: &P,
    port: u16,
    protocol: &str,
    dest_hostname: &str,
    dest_port: u16,
    username: Option<&str>,
    password: Option<&str>
) -> ProxyAddress
[src]

Creates a new ProxyAddress for inetaddr with protocol that should tunnel through dest_hostname and dest_port.

(Note that this method doesn't set the ProxyAddress:uri or ProxyAddress:destination-protocol fields; use gobject::Object::new directly if you want to set those.)

inetaddr

The proxy server InetAddress.

port

The proxy server port.

protocol

The proxy protocol to support, in lower case (e.g. socks, http).

dest_hostname

The destination hostname the proxy should tunnel to.

dest_port

The destination port to tunnel to.

username

The username to authenticate to the proxy server (or None).

password

The password to authenticate to the proxy server (or None).

Returns

a new ProxyAddress

Trait Implementations

impl Clone for ProxyAddress

impl Debug for ProxyAddress

impl Display for ProxyAddress[src]

impl Eq for ProxyAddress

impl Hash for ProxyAddress

impl IsA<InetSocketAddress> for ProxyAddress

impl IsA<SocketAddress> for ProxyAddress

impl IsA<SocketConnectable> for ProxyAddress

impl Ord for ProxyAddress

impl<T: ObjectType> PartialEq<T> for ProxyAddress

impl<T: ObjectType> PartialOrd<T> for ProxyAddress

impl Send for ProxyAddress[src]

impl StaticType for ProxyAddress

impl Sync for ProxyAddress[src]

Auto Trait Implementations

impl RefUnwindSafe for ProxyAddress

impl Unpin for ProxyAddress

impl UnwindSafe for ProxyAddress

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.