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 data
  • RECEIVE - 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>

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.