Struct stream_cancel::Valve
source · pub struct Valve(_);
Expand description
A Valve
is associated with a Trigger
, and can be used to wrap one or more
asynchronous streams. All streams wrapped by a given Valve
(or its clones) will be
interrupted when [Trigger::close
] is called on the valve’s associated handle.