pub struct GenerationStream(/* private fields */);Expand description
One decision’s stream. Dropping the receiver never blocks execution.
Implementations§
Source§impl GenerationStream
impl GenerationStream
Sourcepub async fn recv(&mut self) -> Option<GenerationEvent>
pub async fn recv(&mut self) -> Option<GenerationEvent>
Receive the next event, or None once the stream is closed and drained.
Spec 037 3.13.1 emits Complete only after final verification; it defines
no cancellation or failure event. Cancellation has no text result
(3.12.6), so it closes without Complete, as does a failure before
verification. None alone does not imply success: await the decision
future for its completion or error. Dropping that future also closes
the stream. Provisional fields are not final results.
Auto Trait Implementations§
impl Freeze for GenerationStream
impl RefUnwindSafe for GenerationStream
impl Send for GenerationStream
impl Sync for GenerationStream
impl Unpin for GenerationStream
impl UnsafeUnpin for GenerationStream
impl UnwindSafe for GenerationStream
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