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