mirror of
https://github.com/nushell/nushell
synced 2024-12-27 21:43:09 +00:00
12 lines
339 B
Rust
12 lines
339 B
Rust
use crate::prelude::*;
|
|
use futures::stream::BoxStream;
|
|
|
|
pub type InputStream = BoxStream<'static, Value>;
|
|
pub type OutputStream = BoxStream<'static, ReturnValue>;
|
|
|
|
crate fn single_output(item: Value) -> OutputStream {
|
|
let value = ReturnValue::Value(item);
|
|
let mut vec = VecDeque::new();
|
|
vec.push_back(value);
|
|
vec.boxed()
|
|
}
|