Trait Connector
Source 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;
}