Struct flo_stream::StreamSwitch [−][src]
pub struct StreamSwitch<TValue> { /* fields omitted */ }
Expand description
Used to switch the stream for a corresponding SwitchingStream
item
This must be dropped before the corresponding SwitchingStream
can be closed
Implementations
pub fn switch_to_stream<TStream: 'static + Send + Stream<Item = TValue>>(
&self,
new_stream: TStream
)
pub fn switch_to_stream<TStream: 'static + Send + Stream<Item = TValue>>(
&self,
new_stream: TStream
)
Switches the stream being returned by the corresponding SwitchingStream
to the specified new stream