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); } }