Module context_rs::well_known

source ·
Available on crate feature std only.
Expand description

Well known uses for provider contexts.

This mirrors what you might find with Go’s context.Context.

Structs

A Deadline type that wraps an Instant.
The receiving side of a shutdown handler
The sending side of a shutdown handler

Enums

Enum state returned by run_until_signal.

Traits

Extension trait to provide some well known context values

Functions

Runs the provided future until either shutdown is called on the registered shutdown handler, or until the deadline expires. The unfinished future is returned in case it is not cancel safe and you need to complete it