1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
//! Examples on how to use [`nvim-rs`](crate). //! //! The code in question is in the `examples` directory of the project. The //! files in `src/examples/` contain the documentation. //! //! # Contents //! //! ### handler_drop //! //! An example showing how to implement cleanup-logic by implementing //! [`Drop`](std::ops::Drop) for the [`handler`](crate::rpc::handler::Handler). //! //! ### quitting //! //! An example showing how to handle quitting in a plugin by catching a [`closed //! channel`](crate::error::CallError::is_channel_closed). //! //! //! ## scorched_earth //! //! A port of a real existing plugin. pub mod handler_drop; pub mod quitting; pub mod scorched_earth;