Struct juniper_graphql_ws::ConnectionConfig[][src]

pub struct ConnectionConfig<CtxT> { /* fields omitted */ }

ConnectionConfig is used to configure the connection once the client sends the ConnectionInit message.

Implementations

impl<CtxT> ConnectionConfig<CtxT>[src]

pub fn new(context: CtxT) -> Self[src]

Constructs the configuration required for a connection to be accepted.

pub fn with_max_in_flight_operations(self, max: usize) -> Self[src]

Specifies the maximum number of in-flight operations that a connection can have. If this number is exceeded, attempting to start more will result in an error. By default, there is no limit to in-flight operations.

pub fn with_keep_alive_interval(self, interval: Duration) -> Self[src]

Specifies the interval at which to send keep-alives. Specifying a zero duration will disable keep-alives. By default, keep-alives are sent every 15 seconds.

Trait Implementations

impl<S: ScalarValue, CtxT: Unpin + Send + 'static> Init<S, CtxT> for ConnectionConfig<CtxT>[src]

type Error = Infallible

The error that is returned on failure. The formatted error will be used as the contents of the “message” field sent back to the client. Read more

type Future = Ready<Result<Self, Self::Error>>

The future configuration type.

Auto Trait Implementations

impl<CtxT> RefUnwindSafe for ConnectionConfig<CtxT> where
    CtxT: RefUnwindSafe

impl<CtxT> Send for ConnectionConfig<CtxT> where
    CtxT: Send

impl<CtxT> Sync for ConnectionConfig<CtxT> where
    CtxT: Sync

impl<CtxT> Unpin for ConnectionConfig<CtxT> where
    CtxT: Unpin

impl<CtxT> UnwindSafe for ConnectionConfig<CtxT> where
    CtxT: UnwindSafe

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, U> Into<U> for T where
    U: From<T>, 
[src]

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.