pub trait Serve: Sync {
type Context: Send + Sync + 'static;
// Required method
fn serve(
&self,
instance: &str,
func: &str,
paths: Arc<[Box<[Option<usize>]>]>,
) -> impl Future<Output = Result<impl Stream<Item = Result<(Self::Context, Outgoing, Incoming), Error>> + Send + 'static + use<Self>, Error>> + Send;
}Expand description
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".