pub enum PyStreamStep {
Item(Value),
End,
Error(PluginError),
}Expand description
One step of advancing a Python plugin’s server-streaming iterator.
Variants§
Item(Value)
One produced item, already converted to the JSON currency.
End
Clean end of stream (StopIteration).
Error(PluginError)
The generator raised, or an item failed to convert. Terminal.
Auto Trait Implementations§
impl Freeze for PyStreamStep
impl RefUnwindSafe for PyStreamStep
impl Send for PyStreamStep
impl Sync for PyStreamStep
impl Unpin for PyStreamStep
impl UnsafeUnpin for PyStreamStep
impl UnwindSafe for PyStreamStep
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