pub struct RequestScope { /* private fields */ }Expand description
The cache of one unit of work (an HTTP request, a job run, a command, …):
request-scoped providers are built at most once per RequestScope.
Clones share the same cache.
Implementations§
Source§impl RequestScope
impl RequestScope
Trait Implementations§
Source§impl Clone for RequestScope
impl Clone for RequestScope
Source§impl Debug for RequestScope
impl Debug for RequestScope
Auto Trait Implementations§
impl Forget for RequestScope
impl Freeze for RequestScope
impl Move for RequestScope
impl RefUnwindSafe for RequestScope
impl Send for RequestScope
impl Sync for RequestScope
impl Unpin for RequestScope
impl UnsafeUnpin for RequestScope
impl UnwindSafe for RequestScope
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