aboutsummaryrefslogtreecommitdiff
path: root/src/output_protocol/stdout.rs
blob: 364050722775f38af59ef4da1cf561b1b99feff6 (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);
    }
}