pub enum DepTerminal {
Complete,
Error(Rc<str>),
}Expand description
A dep’s terminal state, visible to the fn via Ctx::terminal
(R-deps-terminal / C-15). None ⇔ the dep is live; Some(..) ⇔ it COMPLETEd
or ERRORed. Read by terminalAsRealInput operators (rescue/reduce/*Map) that
treat an inner terminal as a real input rather than an absorbed settle.
Error carries the dep’s error message (an Rc<str>), not the original
GraphError: Box<dyn Error> is not Clone, and a message crosses a dep
subscription as a borrow (&Message), so the concrete error type cannot be
preserved into this per-wave-cloneable record. Per-language (D24, D31
error=unknown — the top type); the message survives, the downcast does not.
Variants§
Complete
The dep emitted COMPLETE.
Error(Rc<str>)
The dep emitted ERROR; carries its Display message (see type doc).
Trait Implementations§
Source§impl Clone for DepTerminal
impl Clone for DepTerminal
Source§fn clone(&self) -> DepTerminal
fn clone(&self) -> DepTerminal
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DepTerminal
impl RefUnwindSafe for DepTerminal
impl !Send for DepTerminal
impl !Sync for DepTerminal
impl Unpin for DepTerminal
impl UnsafeUnpin for DepTerminal
impl UnwindSafe for DepTerminal
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