Crate futures_shuttle [−] [src]
A channel for shuttling a single object/message back and forth between two asynchronous tasks.
Contrary to the mutex or lock, shuttle always belongs to one of the two tasks. The side that
owns the control over
Shuttle at a specific moment can manipulate its content and send it
to the other side. At this point control goes over to the other side and the original side
loses the ability to access the
Shuttle object. It, however, can wait for
to come back from the other side of the track, and then regain the access.
This is created by the
Describes the possible error state of the
Creates a new shuttle synchronization object for sharing values between two asynchronous tasks.