aboutsummaryrefslogtreecommitdiff
path: root/src/output_protocol/stderr.rs
blob: 68e94a7f0789582d4dc819402172342415944697 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);
    }
}