[][src]Struct async_graphql_actix_web::WSSubscription

pub struct WSSubscription<Query, Mutation, Subscription> { /* fields omitted */ }

Actor for subscription via websocket

Implementations

impl<Query, Mutation, Subscription> WSSubscription<Query, Mutation, Subscription> where
    Query: ObjectType + Send + Sync + 'static,
    Mutation: ObjectType + Send + Sync + 'static,
    Subscription: SubscriptionType + Send + Sync + 'static, 
[src]

pub fn new(schema: Schema<Query, Mutation, Subscription>) -> Self[src]

Create an actor for subscription connection via websocket.

pub fn initializer<F>(self, f: F) -> Self where
    F: FnOnce(Value) -> Result<Data> + Send + Sync + 'static, 
[src]

Set a context data initialization function.

Trait Implementations

impl<Query, Mutation, Subscription> Actor for WSSubscription<Query, Mutation, Subscription> where
    Query: ObjectType + Sync + Send + 'static,
    Mutation: ObjectType + Sync + Send + 'static,
    Subscription: SubscriptionType + Send + Sync + 'static, 
[src]

type Context = WebsocketContext<Self>

Actor execution context type

impl<Query, Mutation, Subscription> StreamHandler<Result<Message, ProtocolError>> for WSSubscription<Query, Mutation, Subscription> where
    Query: ObjectType + Sync + Send + 'static,
    Mutation: ObjectType + Sync + Send + 'static,
    Subscription: SubscriptionType + Send + Sync + 'static, 
[src]

Auto Trait Implementations

impl<Query, Mutation, Subscription> !RefUnwindSafe for WSSubscription<Query, Mutation, Subscription>

impl<Query, Mutation, Subscription> Send for WSSubscription<Query, Mutation, Subscription> where
    Mutation: Send + Sync,
    Query: Send + Sync,
    Subscription: Send + Sync

impl<Query, Mutation, Subscription> Sync for WSSubscription<Query, Mutation, Subscription> where
    Mutation: Send + Sync,
    Query: Send + Sync,
    Subscription: Send + Sync

impl<Query, Mutation, Subscription> Unpin for WSSubscription<Query, Mutation, Subscription>

impl<Query, Mutation, Subscription> !UnwindSafe for WSSubscription<Query, Mutation, Subscription>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,