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