pub trait ProtocolDriver: Send + Sync {
// Required methods
fn descriptor(&self) -> ProtocolDescriptor;
fn build<'life0, 'async_trait>(
&'life0 self,
spec: ProtocolLaunchSpec,
extensions: RuntimeExtensions,
) -> Pin<Box<dyn Future<Output = RuntimeResult<Arc<dyn ManagedService>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided methods
fn features(&self) -> &'static [&'static str] { ... }
fn schema(&self) -> Option<JsonValue> { ... }
}Expand description
Compile-time extensibility point for protocol service creation.
Required Methods§
Sourcefn descriptor(&self) -> ProtocolDescriptor
fn descriptor(&self) -> ProtocolDescriptor
Returns the driver descriptor.
Sourcefn build<'life0, 'async_trait>(
&'life0 self,
spec: ProtocolLaunchSpec,
extensions: RuntimeExtensions,
) -> Pin<Box<dyn Future<Output = RuntimeResult<Arc<dyn ManagedService>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn build<'life0, 'async_trait>(
&'life0 self,
spec: ProtocolLaunchSpec,
extensions: RuntimeExtensions,
) -> Pin<Box<dyn Future<Output = RuntimeResult<Arc<dyn ManagedService>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Builds a managed service from the generic launch request.