pub enum StreamBehavior {
Continue,
Delay(f64),
Stop,
}
Expand description
What to do with stream when it is delayed, returned in callback on_stream_delayed
Variants§
Continue
Do not add delay to the stream, stream will try to catch up
Delay(f64)
Add delay to the stream so it won’t try to catch up
Stop
Stop stream (no longer producing elements and terminates without error)
Auto Trait Implementations§
impl RefUnwindSafe for StreamBehavior
impl Send for StreamBehavior
impl Sync for StreamBehavior
impl Unpin for StreamBehavior
impl UnwindSafe for StreamBehavior
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