Trait xwt_core::traits::EndpointConnect
source · pub trait EndpointConnect: Sized + Send {
type Connecting: Connecting;
type Error: Error + Send + Sync + 'static;
// Required method
fn connect(
&self,
url: &str
) -> impl Future<Output = Result<Self::Connecting, Self::Error>> + Send;
}
Required Associated Types§
type Connecting: Connecting
type Error: Error + Send + Sync + 'static
Required Methods§
fn connect( &self, url: &str ) -> impl Future<Output = Result<Self::Connecting, Self::Error>> + Send
Object Safety§
This trait is not object safe.