[−][src]Trait gio::prelude::SocketConnectionExt
Required methods
fn connect<P: IsA<SocketAddress>, Q: IsA<Cancellable>>(
&self,
address: &P,
cancellable: Option<&Q>
) -> Result<(), Error>
&self,
address: &P,
cancellable: Option<&Q>
) -> Result<(), Error>
fn connect_async<P: IsA<SocketAddress>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
address: &P,
cancellable: Option<&Q>,
callback: R
)
&self,
address: &P,
cancellable: Option<&Q>,
callback: R
)
fn connect_async_future<P: IsA<SocketAddress> + Clone + 'static>(
&self,
address: &P
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
&self,
address: &P
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn get_local_address(&self) -> Result<SocketAddress, Error>
fn get_remote_address(&self) -> Result<SocketAddress, Error>
fn get_socket(&self) -> Option<Socket>
fn is_connected(&self) -> bool
Implementors
impl<O: IsA<SocketConnection>> SocketConnectionExt for O
[src]
fn connect<P: IsA<SocketAddress>, Q: IsA<Cancellable>>(
&self,
address: &P,
cancellable: Option<&Q>
) -> Result<(), Error>
[src]
&self,
address: &P,
cancellable: Option<&Q>
) -> Result<(), Error>
fn connect_async<P: IsA<SocketAddress>, Q: IsA<Cancellable>, R: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
address: &P,
cancellable: Option<&Q>,
callback: R
)
[src]
&self,
address: &P,
cancellable: Option<&Q>,
callback: R
)
fn connect_async_future<P: IsA<SocketAddress> + Clone + 'static>(
&self,
address: &P
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
[src]
&self,
address: &P
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>