pub trait Connector:
Send
+ Sync
+ 'static
+ Debug {
// Required methods
fn connect_guardian<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
url: &'life1 SafeUrl,
api_secret: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = ServerResult<DynGuaridianConnection>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn connect_gateway<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 SafeUrl,
) -> Pin<Box<dyn Future<Output = Result<DynGatewayConnection>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn connectivity(&self, url: &SafeUrl) -> Connectivity;
}Required Methods§
fn connect_guardian<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
url: &'life1 SafeUrl,
api_secret: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = ServerResult<DynGuaridianConnection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn connect_gateway<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 SafeUrl,
) -> Pin<Box<dyn Future<Output = Result<DynGatewayConnection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sourcefn connectivity(&self, url: &SafeUrl) -> Connectivity
fn connectivity(&self, url: &SafeUrl) -> Connectivity
Report how a connection to url is currently reaching its peer.