pub struct Scope { /* private fields */ }Implementations§
Source§impl Scope
impl Scope
pub fn service(self, handler: impl Handler) -> Scope
pub fn layer(self, layer: impl Layer) -> Scope
pub fn layer_fn<F, Fut>(self, f: F) -> Scope
pub fn state<T: Send + Sync + 'static>(self, value: T) -> Scope
pub fn scope(self, name: &str, f: impl FnOnce(Scope) -> Scope) -> Scope
Auto Trait Implementations§
impl !RefUnwindSafe for Scope
impl !Sync for Scope
impl !UnwindSafe for Scope
impl Freeze for Scope
impl Send for Scope
impl Unpin for Scope
impl UnsafeUnpin for Scope
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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