Trait bitcoin_ipc::Serve

source ·
pub trait Serve {
    // Required method
    fn serve(
        &mut self,
        fd: i32,
        exe_name: *const u8,
        init: Rc<RefCell<dyn Init>>
    );
}

Required Methods§

source

fn serve(&mut self, fd: i32, exe_name: *const u8, init: Rc<RefCell<dyn Init>>)

| Handle requests on provided socket | descriptor, forwarding them to the | provided Init interface. Socket | communication is handled on the current | thread, and this call blocks until the | socket is closed.

Implementors§