aboutsummaryrefslogtreecommitdiff
path: root/src/output_protocol/stdout.rs
blob: 3458da8b779a80900b7edf5475e1f39ca34971c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::OutputProtocol;

#[derive(Debug, Default)]
pub struct StandardOutputProtocol;

impl OutputProtocol for StandardOutputProtocol {
    async fn init(&self) {
        // No initialization needed
    }

    async fn send(self: std::sync::Arc<Self>, str: &str) {
        println!("{}", str);
    }
}