#[repr(C)]pub struct Bundle<Req, State = State, Res = ()> {
pub request: Req,
pub response: Res,
pub stop_flag: StopFlag,
pub state: State,
}Expand description
The container passed through the handler chain, carrying the request, response, state, and a stop flag.
Fields§
§request: ReqThe request being processed.
response: ResThe response being built.
stop_flag: StopFlagA flag to stop the chain.
state: StateThe state shared across handlers.
Implementations§
Trait Implementations§
Source§impl<Req, State, Res> FromRequest<Req, State, Res> for &mut Bundle<Req, State, Res>
impl<Req, State, Res> FromRequest<Req, State, Res> for &mut Bundle<Req, State, Res>
Source§fn from_request(bundle: &mut Bundle<Req, State, Res>) -> Option<Self>
fn from_request(bundle: &mut Bundle<Req, State, Res>) -> Option<Self>
Extract this value from the bundle.
Source§impl<Req, State, Res> Service<Bundle<Req, State, Res>> for TowerHandler<Req, State, Res>
impl<Req, State, Res> Service<Bundle<Req, State, Res>> for TowerHandler<Req, State, Res>
Auto Trait Implementations§
impl<Req, State, Res> Freeze for Bundle<Req, State, Res>
impl<Req, State, Res> RefUnwindSafe for Bundle<Req, State, Res>
impl<Req, State, Res> Send for Bundle<Req, State, Res>
impl<Req, State, Res> Sync for Bundle<Req, State, Res>
impl<Req, State, Res> Unpin for Bundle<Req, State, Res>
impl<Req, State, Res> UnsafeUnpin for Bundle<Req, State, Res>
impl<Req, State, Res> UnwindSafe for Bundle<Req, State, Res>
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
Source§impl<T> IntoResponse<T> for Twhere
T: Send,
impl<T> IntoResponse<T> for Twhere
T: Send,
Source§fn into_response(self) -> T
fn into_response(self) -> T
Convert this value into a response.