New plans for macros

About to move them completely to stdlib
This commit is contained in:
2024-08-18 22:57:06 +02:00
parent 11951ede43
commit 3a63894de2
78 changed files with 2557 additions and 1980 deletions

View File

@@ -1,8 +1,10 @@
use super::coding::{Coding, Encode};
use crate::helpers::enc_vec;
use super::coding::Coding;
pub trait Request: Coding + Sized + Send + 'static {
type Response: Coding + Send + 'static;
fn respond(&self, rep: Self::Response) -> Vec<u8> { rep.enc_vec() }
fn respond(&self, rep: Self::Response) -> Vec<u8> { enc_vec(&rep) }
}
pub trait Channel: 'static {