pub struct Processors<Request, Response> {
pub processors: Vec<Processor<Request, Response>>,
pub router: Router<Request, Response>,
/* private fields */
}
Expand description
Request processors.
Fields§
§processors: Vec<Processor<Request, Response>>
The underlying processors.
router: Router<Request, Response>
Requests router.
Implementations§
Source§impl<Request, Response> Processors<Request, Response>where
for<'de> Request: Serialize + Deserialize<'de> + Send,
for<'de> Response: Serialize + Deserialize<'de> + Send,
impl<Request, Response> Processors<Request, Response>where
for<'de> Request: Serialize + Deserialize<'de> + Send,
for<'de> Response: Serialize + Deserialize<'de> + Send,
Sourcepub fn run_in_parallel<S>(
self,
socium: S,
) -> Result<Vec<ParallelRunError>, ParallelRunError>
pub fn run_in_parallel<S>( self, socium: S, ) -> Result<Vec<ParallelRunError>, ParallelRunError>
Runs all the underlying responses in separate thread each using given socium.
Auto Trait Implementations§
impl<Request, Response> !Freeze for Processors<Request, Response>
impl<Request, Response> !RefUnwindSafe for Processors<Request, Response>
impl<Request, Response> Send for Processors<Request, Response>
impl<Request, Response> !Sync for Processors<Request, Response>
impl<Request, Response> Unpin for Processors<Request, Response>
impl<Request, Response> UnwindSafe for Processors<Request, Response>where
Request: UnwindSafe,
Response: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more