use crate::stream::{RecvStream, SendStream};
pub struct Connection {
}
impl Connection {
pub(crate) fn new() -> Self {
Self {}
}
pub async fn open_bi(&self) -> std::io::Result<(SendStream, RecvStream)> {
Ok((SendStream::new(), RecvStream::new()))
}
pub async fn open_uni(&self) -> std::io::Result<SendStream> {
Ok(SendStream::new())
}
pub async fn accept_bi(&self) -> std::io::Result<(SendStream, RecvStream)> {
Ok((SendStream::new(), RecvStream::new()))
}
pub async fn accept_uni(&self) -> std::io::Result<RecvStream> {
Ok(RecvStream::new())
}
pub async fn send_datagram(&self, _data: bytes::Bytes) -> std::io::Result<()> {
Ok(())
}
pub async fn close(&self) {
}
}