pub trait SocketClientExt: 'static {
Show 39 methods fn add_application_proxy(&self, protocol: &str); fn connect<P: IsA<SocketConnectable>, Q: IsA<Cancellable>>(
        &self,
        connectable: &P,
        cancellable: Option<&Q>
    ) -> Result<SocketConnection, Error>; fn connect_async<P: IsA<SocketConnectable>, Q: IsA<Cancellable>, R: FnOnce(Result<SocketConnection, Error>) + Send + 'static>(
        &self,
        connectable: &P,
        cancellable: Option<&Q>,
        callback: R
    ); fn connect_to_host<P: IsA<Cancellable>>(
        &self,
        host_and_port: &str,
        default_port: u16,
        cancellable: Option<&P>
    ) -> Result<SocketConnection, Error>; fn connect_to_host_async<P: IsA<Cancellable>, Q: FnOnce(Result<SocketConnection, Error>) + Send + 'static>(
        &self,
        host_and_port: &str,
        default_port: u16,
        cancellable: Option<&P>,
        callback: Q
    ); fn connect_to_service<P: IsA<Cancellable>>(
        &self,
        domain: &str,
        service: &str,
        cancellable: Option<&P>
    ) -> Result<SocketConnection, Error>; fn connect_to_service_async<P: IsA<Cancellable>, Q: FnOnce(Result<SocketConnection, Error>) + Send + 'static>(
        &self,
        domain: &str,
        service: &str,
        cancellable: Option<&P>,
        callback: Q
    ); fn connect_to_uri<P: IsA<Cancellable>>(
        &self,
        uri: &str,
        default_port: u16,
        cancellable: Option<&P>
    ) -> Result<SocketConnection, Error>; fn connect_to_uri_async<P: IsA<Cancellable>, Q: FnOnce(Result<SocketConnection, Error>) + Send + 'static>(
        &self,
        uri: &str,
        default_port: u16,
        cancellable: Option<&P>,
        callback: Q
    ); fn get_enable_proxy(&self) -> bool; fn get_family(&self) -> SocketFamily; fn get_local_address(&self) -> Option<SocketAddress>; fn get_protocol(&self) -> SocketProtocol; fn get_proxy_resolver(&self) -> Option<ProxyResolver>; fn get_socket_type(&self) -> SocketType; fn get_timeout(&self) -> u32; fn get_tls(&self) -> bool; fn get_tls_validation_flags(&self) -> TlsCertificateFlags; fn set_enable_proxy(&self, enable: bool); fn set_family(&self, family: SocketFamily); fn set_local_address<P: IsA<SocketAddress>>(&self, address: Option<&P>); fn set_protocol(&self, protocol: SocketProtocol); fn set_proxy_resolver<P: IsA<ProxyResolver>>(
        &self,
        proxy_resolver: Option<&P>
    ); fn set_socket_type(&self, type_: SocketType); fn set_timeout(&self, timeout: u32); fn set_tls(&self, tls: bool); fn set_tls_validation_flags(&self, flags: TlsCertificateFlags); fn get_property_type(&self) -> SocketType; fn set_property_type(&self, type_: SocketType); fn connect_event<F: Fn(&Self, SocketClientEvent, &SocketConnectable, Option<&IOStream>) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_property_enable_proxy_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_property_family_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_property_local_address_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_property_protocol_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_property_proxy_resolver_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_property_timeout_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_property_tls_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_property_tls_validation_flags_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_property_type_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
}

Required Methods

Implementors