pub fn subscribe(nvim: &mut neovim_lib::Neovim, page_id: &str) -> mpsc::Receiver<NotificationFromNeovim> {
        log::trace!(target: "subscribe to notifications", "Id: {}", page_id);
        let (tx, rx) = mpsc::sync_channel(16);
        nvim.session.start_event_loop_handler(NotificationReceiver { tx, page_id: page_id.to_string() });
        nvim.subscribe("page_fetch_lines").unwrap();
        nvim.subscribe("page_buffer_closed").unwrap();
        rx
    }
/// Registers handler which receives notifications from neovim side.
/// Commands are received on separate thread and further redirected to mpsc sender
/// associated with receiver returned from current function
Registers handler which receives notifications from neovim side.
Commands are received on separate thread and further redirected to mpsc sender
associated with receiver returned from current function
Registers handler which receives notifications from neovim side . Commands are received on separate thread and further redirected to mpsc sender associated with receiver returned from current function
pub fn subscribe(nvim: &mut neovim_lib::Neovim, page_id: &str) -> mpsc::Receiver<NotificationFromNeovim> {
        log::trace!(target: "subscribe to notifications", "Id: {}", page_id);
        let (tx, rx) = mpsc::sync_channel(16);
        nvim.session.start_event_loop_handler(NotificationReceiver { tx, page_id: page_id.to_string() });
        nvim.subscribe("page_fetch_lines").unwrap();
        nvim.subscribe("page_buffer_closed").unwrap();
        rx
    }
pub fn subscribe ( nvim : & mut neovim_lib :: Neovim , page_id : & str ) -> mpsc :: Receiver < NotificationFromNeovim > { log :: trace ! ( target " " " " page_id ) ; let ( tx , rx ) = mpsc :: sync_channel ( 16 ) ; nvim . session . start_event_loop_handler ( NotificationReceiver { tx , page_id : page_id . to_string ( ) } ) ; nvim . subscribe ( " " ) . unwrap ( ) ; nvim . subscribe ( " " ) . unwrap ( ) ; rx }
Registers handler which receives notifications from neovim side.
Registers handler which receives notifications from neovim side .
nvim
&mut neovim_lib::Neovim
page_id
&str
nvim
&mut neovim_lib::Neovim
page_id
&str