Trait sourceview5::prelude::SocketConnectionExt
source · pub trait SocketConnectionExt: IsA<SocketConnection> + Sealed + 'static {
// Provided methods
fn connect(
&self,
address: &impl IsA<SocketAddress>,
cancellable: Option<&impl IsA<Cancellable>>,
) -> Result<(), Error> { ... }
fn connect_async<P>(
&self,
address: &impl IsA<SocketAddress>,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P,
)
where P: FnOnce(Result<(), Error>) + 'static { ... }
fn connect_future(
&self,
address: &(impl IsA<SocketAddress> + Clone + 'static),
) -> Pin<Box<dyn Future<Output = Result<(), Error>>>> { ... }
fn local_address(&self) -> Result<SocketAddress, Error> { ... }
fn remote_address(&self) -> Result<SocketAddress, Error> { ... }
fn socket(&self) -> Socket { ... }
fn is_connected(&self) -> bool { ... }
}
Provided Methods§
fn connect( &self, address: &impl IsA<SocketAddress>, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error>
fn connect_async<P>( &self, address: &impl IsA<SocketAddress>, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )
fn connect_future( &self, address: &(impl IsA<SocketAddress> + Clone + 'static), ) -> Pin<Box<dyn Future<Output = Result<(), Error>>>>
fn local_address(&self) -> Result<SocketAddress, Error>
fn remote_address(&self) -> Result<SocketAddress, Error>
fn socket(&self) -> Socket
fn is_connected(&self) -> bool
Object Safety§
This trait is not object safe.