Module ntex::util[][src]

Modules

buffer

Service that buffers incomming requests.

counter
inflight

Service that limits number of in-flight async requests.

keepalive
sink
stream
time
timeout

Service that applies a timeout to requests.

variant

Contains Variant service and related types and functions.

Structs

ByteString

An immutable UTF-8 encoded string with Bytes as a storage.

Bytes

A cheaply cloneable and sliceable chunk of contiguous memory.

BytesMut

A unique reference to a contiguous slice of memory.

Extensions

A type map of request extensions.

Lazy

Future for the lazy function.

Enums

Either

Combines two different futures, streams, or sinks having the same associated types into a single type.

Ready

A future representing a value that is immediately ready.

Traits

Buf

Read bytes from a buffer.

BufMut

A trait for values that provide sequential write access to bytes.

Sink

A Sink is a value into which other values can be sent, asynchronously.

Stream

A stream of values produced asynchronously.

Functions

join

Future for the join combinator, waiting for two futures to complete.

join_all

Creates a future which represents a collection of the outputs of the futures given.

lazy

Creates a new future that allows delayed execution of a closure.

poll_fn

Creates a new future wrapping around a function returning Poll.

select

Waits for either one of two differently-typed futures to complete.

sink_write

A future that completes after the given item has been fully processed into the sink, including flushing.

stream_recv

Creates a future that resolves to the next item in the stream.

Type Definitions

HashMap
HashSet