use std::process::ExitStatus;
use crate::error::DapzError;
use crate::transport::Transport;
pub struct WsTransport;
impl WsTransport {
pub async fn connect(_url: &str) -> Result<Self, DapzError> {
Err(DapzError::Config(
"WebSocket transport not yet implemented".into(),
))
}
}
#[async_trait::async_trait]
impl Transport for WsTransport {
async fn receive(&mut self) -> Result<Vec<u8>, DapzError> {
Err(DapzError::Protocol(
"WebSocket transport not yet implemented".into(),
))
}
async fn send(&mut self, _data: &[u8]) -> Result<(), DapzError> {
Err(DapzError::Protocol(
"WebSocket transport not yet implemented".into(),
))
}
fn try_wait(&mut self) -> Result<Option<ExitStatus>, DapzError> {
Ok(None)
}
}