File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use re_smart_channel::Sender;
4
4
/// Asynchronously loads RRD data streaming in from standard input.
5
5
///
6
6
/// This fails synchronously iff the standard input stream could not be opened, otherwise errors
7
- /// are handlded asynchronously (as in: they're logged).
7
+ /// are handled asynchronously (as in: they're logged).
8
8
pub fn load_stdin ( tx : Sender < LogMsg > ) -> anyhow:: Result < ( ) > {
9
9
let version_policy = re_log_encoding:: decoder:: VersionPolicy :: Warn ;
10
10
Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ impl FileSink {
116
116
}
117
117
}
118
118
119
+ /// Set `filepath` to `None` to stream to standard output.
119
120
fn spawn_and_stream < W : std:: io:: Write + Send + ' static > (
120
121
filepath : Option < & std:: path:: Path > ,
121
122
mut encoder : crate :: encoder:: Encoder < W > ,
@@ -159,7 +160,7 @@ impl fmt::Debug for FileSink {
159
160
f. debug_struct ( "FileSink" )
160
161
. field (
161
162
"path" ,
162
- & self . path . as_ref ( ) . cloned ( ) . unwrap_or ( "stdin " . into ( ) ) ,
163
+ & self . path . as_ref ( ) . cloned ( ) . unwrap_or ( "stdout " . into ( ) ) ,
163
164
)
164
165
. finish_non_exhaustive ( )
165
166
}
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ Use [`rr.save`](https://ref.rerun.io/docs/python/stable/common/initialization_fu
76
76
Use [ ` RecordingStream::save ` ] ( https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.save ) .
77
77
78
78
79
- ## Standard Input/Ouput
79
+ ## Standard Input/Output
80
80
81
81
Streams all logging data to standard output, which can then be loaded by the Rerun Viewer by streaming it from standard input.
82
82
You can’t perform that action at this time.
0 commit comments