pub trait Connection: Any + Send {
// Required methods
fn read(&mut self) -> DynFuture<'_, Box<[u8]>>;
fn write<'a>(&'a mut self, response: &'a [u8]) -> DynFuture<'a, ()>;
}Available on crate feature
host only.pub trait Connection: Any + Send {
// Required methods
fn read(&mut self) -> DynFuture<'_, Box<[u8]>>;
fn write<'a>(&'a mut self, response: &'a [u8]) -> DynFuture<'a, ()>;
}host only.