hyprwire 0.2.7

A fast and consistent wire protocol for IPC
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::{object, types};
use std::rc;

type OnBind<'a> = Box<dyn Fn(rc::Rc<dyn object::RawObject>) + 'a>;

pub struct ObjectImplementation<'a> {
    pub object_name: &'a str,
    pub version: u32,
    pub on_bind: OnBind<'a>,
}

pub trait ProtocolImplementations {
    fn protocol(&self) -> &dyn types::ProtocolSpec;

    fn implementation(&self) -> &[ObjectImplementation<'_>];
}