Struct juniper_graphql_ws::ConnectionConfig[][src]

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

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

Implementations

Constructs the configuration required for a connection to be accepted.

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.

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

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

The future configuration type.

Returns a future for the configuration to use.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.