diff options
Diffstat (limited to 'src/output_protocol/stderr.rs')
| -rw-r--r-- | src/output_protocol/stderr.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/output_protocol/stderr.rs b/src/output_protocol/stderr.rs new file mode 100644 index 0000000..fabd390 --- /dev/null +++ b/src/output_protocol/stderr.rs @@ -0,0 +1,14 @@ +use crate::OutputProtocol; + +#[derive(Debug, Default)] +pub struct StandardErrorProtocol; + +impl OutputProtocol for StandardErrorProtocol { + async fn init(self) { + // No initialization needed + } + + async fn send(self: std::sync::Arc<Self>, str: &str) { + eprintln!("{}", str); + } +} |
