pub struct GlobalPoolOperationGuard { /* private fields */ }Implementations§
Source§impl GlobalPoolOperationGuard
impl GlobalPoolOperationGuard
Sourcepub fn from_container(container: &Container) -> Self
pub fn from_container(container: &Container) -> Self
Resolve the global pool eagerly — the container is final at mount.
Sourcepub fn factory(container: &Container) -> Arc<dyn GraphqlOperationGuard>
pub fn factory(container: &Container) -> Arc<dyn GraphqlOperationGuard>
The factory use_guards_global seeds as
FallbackOperationGuard.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for GlobalPoolOperationGuard
impl !UnwindSafe for GlobalPoolOperationGuard
impl Freeze for GlobalPoolOperationGuard
impl Send for GlobalPoolOperationGuard
impl Sync for GlobalPoolOperationGuard
impl Unpin for GlobalPoolOperationGuard
impl UnsafeUnpin for GlobalPoolOperationGuard
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> TowerCompatExt for T
impl<T> TowerCompatExt for T
Source§fn compat<ResBody, Err, Fut>(self) -> TowerCompatEndpoint<Self>where
ResBody: Body + Send + Sync + 'static,
<ResBody as Body>::Data: Into<Bytes> + Send + 'static,
<ResBody as Body>::Error: Error + Send + Sync + 'static,
Err: Into<Error>,
Self: Sized + Service<Request<BoxBody<Bytes, Error>>, Response = Response<ResBody>, Error = Err, Future = Fut> + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<Response<ResBody>, Err>> + Send + 'static,
fn compat<ResBody, Err, Fut>(self) -> TowerCompatEndpoint<Self>where
ResBody: Body + Send + Sync + 'static,
<ResBody as Body>::Data: Into<Bytes> + Send + 'static,
<ResBody as Body>::Error: Error + Send + Sync + 'static,
Err: Into<Error>,
Self: Sized + Service<Request<BoxBody<Bytes, Error>>, Response = Response<ResBody>, Error = Err, Future = Fut> + Clone + Send + Sync + 'static,
Fut: Future<Output = Result<Response<ResBody>, Err>> + Send + 'static,
Converts a tower service to a poem endpoint.