Struct fp_rust::cor::CorOp [−][src]
pub struct CorOp<RETURN: 'static, RECEIVE: 'static> {
pub result_ch_sender: Arc<Mutex<Sender<Option<RETURN>>>>,
pub val: Option<RECEIVE>,
}
Expand description
CorOp
defines a yield action between Cor
objects.
Arguments
RETURN
- The generic type of returned dataRECEIVE
- The generic type of received data
Remarks
It’s the base of implementations of Cor
.
It contains the Cor
calling yield_from
() and the val sent together,
and it’s necessary to the target Cor
making the response by yield_ref
()/yield_none
().
Fields
result_ch_sender: Arc<Mutex<Sender<Option<RETURN>>>>
val: Option<RECEIVE>