pub struct Pipeline<R: Router, T: Transport> { /* private fields */ }Implementations§
Source§impl<R: Router, T: Transport> Pipeline<R, T>
impl<R: Router, T: Transport> Pipeline<R, T>
pub fn new( request_chain: Vec<Box<dyn RequestMiddleware>>, response_chain: Vec<Box<dyn ResponseMiddleware>>, router: R, transport: T, ) -> Self
pub fn request_chain_names(&self) -> Vec<&'static str>
pub fn response_chain_names(&self) -> Vec<&'static str>
pub async fn run(&self, req: Request, cx: &mut Context) -> Response
Auto Trait Implementations§
impl<R, T> Freeze for Pipeline<R, T>
impl<R, T> !RefUnwindSafe for Pipeline<R, T>
impl<R, T> Send for Pipeline<R, T>
impl<R, T> Sync for Pipeline<R, T>
impl<R, T> Unpin for Pipeline<R, T>
impl<R, T> UnsafeUnpin for Pipeline<R, T>where
R: UnsafeUnpin,
T: UnsafeUnpin,
impl<R, T> !UnwindSafe for Pipeline<R, T>
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