1 2 3 4 5 6 7
use std::future::Future; use crate::error::LsError; pub trait LsModule { fn start(&mut self) -> impl Future<Output = Result<(), LsError>> + Send; }