pub struct ProcessorData(/* private fields */);Expand description
Host data for one run, handed to every tool processor through
ProcessorContext::data.
Processors belong to an executor that serves many runs, so state that
differs from run to run — a permission mode, the acting user — travels
here rather than in the processor. The host chooses the type; a host with
several values passes one struct of its own. Causa passes the value
through and never inspects or copies it, so a host whose state changes
during a run stores a shared handle (an Arc around a lock or an atomic)
and a processor reads the current value when it decides each call.
Implementations§
Trait Implementations§
Source§impl Clone for ProcessorData
impl Clone for ProcessorData
Auto Trait Implementations§
impl !RefUnwindSafe for ProcessorData
impl !UnwindSafe for ProcessorData
impl Forget for ProcessorData
impl Freeze for ProcessorData
impl Move for ProcessorData
impl Send for ProcessorData
impl Sync for ProcessorData
impl Unpin for ProcessorData
impl UnsafeUnpin for ProcessorData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more