Skip to main content

Module state

Module state 

Source
Expand description

Lifecycle states of an IoContext.

A state is a type: operations are only defined on the IoContext<State> where they are legal, and a transition consumes the old state to yield the new one, so illegal lifecycles fail to compile.

Modules§

sealed 🔒

Structs§

Accepted
Accepted request-lifecycle state marker (zero-sized).
Completed
Completed request-lifecycle state marker (zero-sized).
Pending
Deferred (STATUS_PENDING) state: an interim reply was sent and the final reply is owed. Carries the async correlation id so it is only reachable once a request has actually been deferred — you cannot complete work that was never parked.

Traits§

IoState
A lifecycle state marker for an IoContext. Sealed: the set of states is closed to this crate.