Struct fp_rust::cor::CorOp[][src]

pub struct CorOp<X: 'static> {
    pub cor: Arc<Mutex<Cor<X>>>,
    pub val: Option<X>,
}

CorOp defines a yield action between Cor objects.

Arguments

  • X - The generic type of yielded 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

Auto Trait Implementations

impl<X> Send for CorOp<X> where
    X: Send

impl<X> Sync for CorOp<X> where
    X: Send + Sync