pub enum Outcome<I, O> {
Item(I),
Done(O),
}Expand description
A single element in an AgentStream: either an intermediate event or the
final result.
Variants§
Item(I)
An intermediate item yielded during processing.
Done(O)
The final result — must be yielded exactly once, as the last element.
Auto Trait Implementations§
impl<I, O> Freeze for Outcome<I, O>
impl<I, O> RefUnwindSafe for Outcome<I, O>where
I: RefUnwindSafe,
O: RefUnwindSafe,
impl<I, O> Send for Outcome<I, O>
impl<I, O> Sync for Outcome<I, O>
impl<I, O> Unpin for Outcome<I, O>
impl<I, O> UnsafeUnpin for Outcome<I, O>where
I: UnsafeUnpin,
O: UnsafeUnpin,
impl<I, O> UnwindSafe for Outcome<I, O>where
I: UnwindSafe,
O: UnwindSafe,
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