Struct juniper_graphql_ws::ConnectionConfig [−][src]
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.
fn init(self, _params: Variables<S>) -> Self::Future
[src]
Auto Trait Implementations
impl<CtxT> RefUnwindSafe for ConnectionConfig<CtxT> where
CtxT: RefUnwindSafe,
CtxT: RefUnwindSafe,
impl<CtxT> Send for ConnectionConfig<CtxT> where
CtxT: Send,
CtxT: Send,
impl<CtxT> Sync for ConnectionConfig<CtxT> where
CtxT: Sync,
CtxT: Sync,
impl<CtxT> Unpin for ConnectionConfig<CtxT> where
CtxT: Unpin,
CtxT: Unpin,
impl<CtxT> UnwindSafe for ConnectionConfig<CtxT> where
CtxT: UnwindSafe,
CtxT: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,