[−][src]Trait gio::prelude::SocketClientExt
Required 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>
&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
)
&self,
connectable: &P,
cancellable: Option<&Q>,
callback: R
)
fn connect_async_future<P: IsA<SocketConnectable> + Clone + 'static>(
&self,
connectable: &P
) -> Pin<Box_<dyn Future<Output = Result<SocketConnection, Error>> + 'static>>
&self,
connectable: &P
) -> Pin<Box_<dyn Future<Output = Result<SocketConnection, Error>> + 'static>>
fn connect_to_host<P: IsA<Cancellable>>(
&self,
host_and_port: &str,
default_port: u16,
cancellable: Option<&P>
) -> Result<SocketConnection, Error>
&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
)
&self,
host_and_port: &str,
default_port: u16,
cancellable: Option<&P>,
callback: Q
)
fn connect_to_host_async_future(
&self,
host_and_port: &str,
default_port: u16
) -> Pin<Box_<dyn Future<Output = Result<SocketConnection, Error>> + 'static>>
&self,
host_and_port: &str,
default_port: u16
) -> Pin<Box_<dyn Future<Output = Result<SocketConnection, Error>> + 'static>>
fn connect_to_service<P: IsA<Cancellable>>(
&self,
domain: &str,
service: &str,
cancellable: Option<&P>
) -> Result<SocketConnection, Error>
&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
)
&self,
domain: &str,
service: &str,
cancellable: Option<&P>,
callback: Q
)
fn connect_to_service_async_future(
&self,
domain: &str,
service: &str
) -> Pin<Box_<dyn Future<Output = Result<SocketConnection, Error>> + 'static>>
&self,
domain: &str,
service: &str
) -> Pin<Box_<dyn Future<Output = Result<SocketConnection, Error>> + 'static>>
fn connect_to_uri<P: IsA<Cancellable>>(
&self,
uri: &str,
default_port: u16,
cancellable: Option<&P>
) -> Result<SocketConnection, Error>
&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
)
&self,
uri: &str,
default_port: u16,
cancellable: Option<&P>,
callback: Q
)
fn connect_to_uri_async_future(
&self,
uri: &str,
default_port: u16
) -> Pin<Box_<dyn Future<Output = Result<SocketConnection, Error>> + 'static>>
&self,
uri: &str,
default_port: u16
) -> Pin<Box_<dyn Future<Output = Result<SocketConnection, Error>> + 'static>>
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
&self,
f: F
) -> SignalHandlerId
fn connect_property_enable_proxy_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_family_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_local_address_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_protocol_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_proxy_resolver_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_timeout_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_tls_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_tls_validation_flags_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_type_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<SocketClient>> SocketClientExt for O
[src]
fn add_application_proxy(&self, protocol: &str)
[src]
fn connect<P: IsA<SocketConnectable>, Q: IsA<Cancellable>>(
&self,
connectable: &P,
cancellable: Option<&Q>
) -> Result<SocketConnection, Error>
[src]
&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
)
[src]
&self,
connectable: &P,
cancellable: Option<&Q>,
callback: R
)
fn connect_async_future<P: IsA<SocketConnectable> + Clone + 'static>(
&self,
connectable: &P
) -> Pin<Box_<dyn Future<Output = Result<SocketConnection, Error>> + 'static>>
[src]
&self,
connectable: &P
) -> Pin<Box_<dyn Future<Output = Result<SocketConnection, Error>> + 'static>>
fn connect_to_host<P: IsA<Cancellable>>(
&self,
host_and_port: &str,
default_port: u16,
cancellable: Option<&P>
) -> Result<SocketConnection, Error>
[src]
&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
)
[src]
&self,
host_and_port: &str,
default_port: u16,
cancellable: Option<&P>,
callback: Q
)
fn connect_to_host_async_future(
&self,
host_and_port: &str,
default_port: u16
) -> Pin<Box_<dyn Future<Output = Result<SocketConnection, Error>> + 'static>>
[src]
&self,
host_and_port: &str,
default_port: u16
) -> Pin<Box_<dyn Future<Output = Result<SocketConnection, Error>> + 'static>>
fn connect_to_service<P: IsA<Cancellable>>(
&self,
domain: &str,
service: &str,
cancellable: Option<&P>
) -> Result<SocketConnection, Error>
[src]
&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
)
[src]
&self,
domain: &str,
service: &str,
cancellable: Option<&P>,
callback: Q
)
fn connect_to_service_async_future(
&self,
domain: &str,
service: &str
) -> Pin<Box_<dyn Future<Output = Result<SocketConnection, Error>> + 'static>>
[src]
&self,
domain: &str,
service: &str
) -> Pin<Box_<dyn Future<Output = Result<SocketConnection, Error>> + 'static>>
fn connect_to_uri<P: IsA<Cancellable>>(
&self,
uri: &str,
default_port: u16,
cancellable: Option<&P>
) -> Result<SocketConnection, Error>
[src]
&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
)
[src]
&self,
uri: &str,
default_port: u16,
cancellable: Option<&P>,
callback: Q
)
fn connect_to_uri_async_future(
&self,
uri: &str,
default_port: u16
) -> Pin<Box_<dyn Future<Output = Result<SocketConnection, Error>> + 'static>>
[src]
&self,
uri: &str,
default_port: u16
) -> Pin<Box_<dyn Future<Output = Result<SocketConnection, Error>> + 'static>>
fn get_enable_proxy(&self) -> bool
[src]
fn get_family(&self) -> SocketFamily
[src]
fn get_local_address(&self) -> Option<SocketAddress>
[src]
fn get_protocol(&self) -> SocketProtocol
[src]
fn get_proxy_resolver(&self) -> Option<ProxyResolver>
[src]
fn get_socket_type(&self) -> SocketType
[src]
fn get_timeout(&self) -> u32
[src]
fn get_tls(&self) -> bool
[src]
fn get_tls_validation_flags(&self) -> TlsCertificateFlags
[src]
fn set_enable_proxy(&self, enable: bool)
[src]
fn set_family(&self, family: SocketFamily)
[src]
fn set_local_address<P: IsA<SocketAddress>>(&self, address: Option<&P>)
[src]
fn set_protocol(&self, protocol: SocketProtocol)
[src]
fn set_proxy_resolver<P: IsA<ProxyResolver>>(&self, proxy_resolver: Option<&P>)
[src]
fn set_socket_type(&self, type_: SocketType)
[src]
fn set_timeout(&self, timeout: u32)
[src]
fn set_tls(&self, tls: bool)
[src]
fn set_tls_validation_flags(&self, flags: TlsCertificateFlags)
[src]
fn get_property_type(&self) -> SocketType
[src]
fn set_property_type(&self, type_: SocketType)
[src]
fn connect_event<F: Fn(&Self, SocketClientEvent, &SocketConnectable, Option<&IOStream>) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_enable_proxy_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_family_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_local_address_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_protocol_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_proxy_resolver_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_timeout_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_tls_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_tls_validation_flags_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_type_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId