WithSpawner

Struct WithSpawner 

Source
pub struct WithSpawner<S, Sp> { /* private fields */ }

Trait Implementations§

Source§

impl<S: Debug, Sp: Debug> Debug for WithSpawner<S, Sp>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a, S, Sp> IntoEndpoint<'a> for WithSpawner<S, Sp>
where S: SharedSchema<Context = ()>, Sp: Executor<Execute<GraphQLTask<S>>> + 'a,

Source§

type Output = (GraphQLResponse,)

The inner type of associated Endpoint.
Source§

type Endpoint = WithSpawnerEndpoint<Cloned<()>, S, Sp>

The type of transformed Endpoint.
Source§

fn into_endpoint(self) -> Self::Endpoint

Consume itself and transform into an Endpoint.
Source§

impl<'a, E, S, Sp> Wrapper<'a, E> for WithSpawner<S, Sp>
where E: Endpoint<'a, Output = (S::Context,)>, S: SharedSchema, Sp: Executor<Execute<GraphQLTask<S>>> + 'a,

Source§

type Output = (GraphQLResponse,)

The inner type of converted Endpoint.
Source§

type Endpoint = WithSpawnerEndpoint<E, S, Sp>

The type of converted Endpoint.
Source§

fn wrap(self, endpoint: E) -> Self::Endpoint

Performs conversion from the provided endpoint into Self::Endpoint.

Auto Trait Implementations§

§

impl<S, Sp> Freeze for WithSpawner<S, Sp>
where S: Freeze, Sp: Freeze,

§

impl<S, Sp> RefUnwindSafe for WithSpawner<S, Sp>

§

impl<S, Sp> Send for WithSpawner<S, Sp>
where S: Send, Sp: Send,

§

impl<S, Sp> Sync for WithSpawner<S, Sp>
where S: Sync, Sp: Sync,

§

impl<S, Sp> Unpin for WithSpawner<S, Sp>
where S: Unpin, Sp: Unpin,

§

impl<S, Sp> UnwindSafe for WithSpawner<S, Sp>
where S: UnwindSafe, Sp: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<'a, E> IntoEndpointExt<'a> for E
where E: IntoEndpoint<'a>,

Source§

fn and<E>( self, other: E, ) -> And<Self::Endpoint, <E as IntoEndpoint<'a>>::Endpoint>
where E: IntoEndpoint<'a>, Self::Output: Combine<<E as IntoEndpoint<'a>>::Output>,

Create an endpoint which evaluates self and e and returns a pair of their tasks. Read more
Source§

fn or<E>( self, other: E, ) -> Or<Self::Endpoint, <E as IntoEndpoint<'a>>::Endpoint>
where E: IntoEndpoint<'a>,

Create an endpoint which evaluates self and e sequentially. Read more
Source§

fn or_strict<E>( self, other: E, ) -> OrStrict<Self::Endpoint, <E as IntoEndpoint<'a>>::Endpoint>
where E: IntoEndpoint<'a, Output = Self::Output>,

Create an endpoint which evaluates self and e sequentially. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.