pub trait SpawnWorkflowExt {
// Required method
fn spawn_workflow<Request, Response, Streams, W>(
&mut self,
build: impl FnOnce(Scope<Request, Response, Streams>, &mut Builder<'_, '_, '_>) -> W,
) -> Service<Request, Response, Streams>
where Request: 'static + Send + Sync,
Response: 'static + Send + Sync,
Streams: StreamPack,
W: Into<WorkflowSettings>;
// Provided method
fn spawn_io_workflow<Request, Response, W>(
&mut self,
build: impl FnOnce(Scope<Request, Response>, &mut Builder<'_, '_, '_>) -> W,
) -> Service<Request, Response>
where Request: 'static + Send + Sync,
Response: 'static + Send + Sync,
W: Into<WorkflowSettings> { ... }
}
Required Methods§
Sourcefn spawn_workflow<Request, Response, Streams, W>(
&mut self,
build: impl FnOnce(Scope<Request, Response, Streams>, &mut Builder<'_, '_, '_>) -> W,
) -> Service<Request, Response, Streams>where
Request: 'static + Send + Sync,
Response: 'static + Send + Sync,
Streams: StreamPack,
W: Into<WorkflowSettings>,
fn spawn_workflow<Request, Response, Streams, W>(
&mut self,
build: impl FnOnce(Scope<Request, Response, Streams>, &mut Builder<'_, '_, '_>) -> W,
) -> Service<Request, Response, Streams>where
Request: 'static + Send + Sync,
Response: 'static + Send + Sync,
Streams: StreamPack,
W: Into<WorkflowSettings>,
Provided Methods§
Sourcefn spawn_io_workflow<Request, Response, W>(
&mut self,
build: impl FnOnce(Scope<Request, Response>, &mut Builder<'_, '_, '_>) -> W,
) -> Service<Request, Response>
fn spawn_io_workflow<Request, Response, W>( &mut self, build: impl FnOnce(Scope<Request, Response>, &mut Builder<'_, '_, '_>) -> W, ) -> Service<Request, Response>
Spawn a pure input/output (io) workflow with no streams. This is just a
convenience wrapper around spawn_workflow
which usually allows you to
avoid specifying any generic parameters when there are no streams being
used.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.