Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

IPC RPC codegen for generic implementation #961

Merged
merged 3 commits into from
Apr 15, 2016
Merged

Conversation

NikVolf
Copy link
Contributor

@NikVolf NikVolf commented Apr 15, 2016

another cryptic AST code to allow such things:

#[derive(Ipc)]
impl<L: Sized> DBWriter for DB<L> {
    fn write(&self, data: Vec<u8>) -> Result<(), DBError> {
        let mut writes = self.writes.write().unwrap();
        *writes = *writes + data.len() as u64;
        Ok(())
    }
}

@NikVolf NikVolf added the A0-pleasereview 🤓 Pull request needs code review. label Apr 15, 2016
@arkpar arkpar added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Apr 15, 2016
@arkpar arkpar merged commit 59f98a2 into master Apr 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants