crate::ix!();
use crate::protocol::Protocol;
pub struct CapnpContext {
}
pub fn capnp_ipc_log_fn(
raise: bool,
message: String) {
todo!();
}
pub type NotLinked = i32; pub type MultiProcessingEventLoop = NotLinked;
pub type TypeIndex = std::any::TypeId;
pub struct CapnpProtocol {
context: CapnpContext,
loop_thread: Thread,
loop_: Option<MultiProcessingEventLoop>,
}
impl Drop for CapnpProtocol {
fn drop(&mut self) {
todo!();
}
}
impl Protocol for CapnpProtocol {}
impl Connect for CapnpProtocol {
fn connect(&mut self,
fd: i32,
exe_name: *const u8) -> Box<dyn Init> {
todo!();
}
}
impl Serve for CapnpProtocol {
fn serve(&mut self,
fd: i32,
exe_name: *const u8,
init: Rc<RefCell<dyn Init>>) {
todo!();
}
}
impl AddCleanup for CapnpProtocol {
fn add_cleanup(&mut self,
ty: TypeIndex,
iface: *mut c_void,
cleanup: fn() -> ()) {
todo!();
}
}
impl Context for CapnpProtocol {
fn context(&mut self) -> Rc<RefCell<IpcContext>> {
todo!();
}
}
impl CapnpProtocol {
pub fn start_loop(&mut self, exe_name: *const u8) {
todo!();
}
}
pub fn make_capnp_protocol() -> Box<dyn Protocol> {
todo!();
}