Skip to main content

Module coroutine

Module coroutine 

Source
Expand description

Coroutine contract shared by every Gmail exchange.

Defines the GmailCoroutine trait, its GmailYield and GmailCoroutineState companions, and the gmail_try! macro (the coroutine equivalent of ?).

Enums§

GmailCoroutineState
Progress of a coroutine after a resume: either an I/O request the caller must fulfill, or the terminal value.
GmailYield
The I/O request a coroutine yields: read bytes from the stream, or write the given bytes to it.

Traits§

GmailCoroutine
A resumable, I/O-free Gmail operation.