pub struct State<St, Req> {
pub req: Req,
pub state: St,
}Expand description
A request paired with state for the duration of a service call.
Fields§
§req: ReqRequest passed to the service.
state: StState made available while processing the request.
Trait Implementations§
impl<St: Copy, Req: Copy> Copy for State<St, Req>
impl<St: Eq, Req: Eq> Eq for State<St, Req>
Source§impl<St: Ord, Req: Ord> Ord for State<St, Req>
impl<St: Ord, Req: Ord> Ord for State<St, Req>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<St: PartialOrd, Req: PartialOrd> PartialOrd for State<St, Req>
impl<St: PartialOrd, Req: PartialOrd> PartialOrd for State<St, Req>
Source§impl<Req, St: 'static> RequestState<Req> for State<St, Req>
impl<Req, St: 'static> RequestState<Req> for State<St, Req>
impl<St: PartialEq, Req: PartialEq> StructuralPartialEq for State<St, Req>
Auto Trait Implementations§
impl<St, Req> Freeze for State<St, Req>
impl<St, Req> RefUnwindSafe for State<St, Req>where
Req: RefUnwindSafe,
St: RefUnwindSafe,
impl<St, Req> Send for State<St, Req>
impl<St, Req> Sync for State<St, Req>
impl<St, Req> Unpin for State<St, Req>
impl<St, Req> UnsafeUnpin for State<St, Req>where
Req: UnsafeUnpin,
St: UnsafeUnpin,
impl<St, Req> UnwindSafe for State<St, Req>where
Req: UnwindSafe,
St: 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