Testing recv
This commit is contained in:
@@ -169,6 +169,13 @@ impl TerminalServer {
|
||||
.await
|
||||
}
|
||||
|
||||
pub async fn log_raw(self: &Arc<Self>, log: EventLog) -> tokio::io::Result<()> {
|
||||
self.logs.lock().await.push(log.clone());
|
||||
|
||||
self.broadcast(pulse_wire::terminal::TerminalServerMessage::AddLog(log))
|
||||
.await
|
||||
}
|
||||
|
||||
pub async fn info(self: &Arc<Self>, name: &str, message: &str) -> tokio::io::Result<()> {
|
||||
self.log(LogKind::Info, name, message).await
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user