From 14f2c962af04f6e9faf464757e3b745630c947ac Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Mon, 14 Oct 2019 10:04:50 -0700 Subject: [PATCH] Also mention send_wrapper in doc for CbSink --- src/cursive.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/cursive.rs b/src/cursive.rs index decb1f8..fd4ab68 100644 --- a/src/cursive.rs +++ b/src/cursive.rs @@ -60,6 +60,14 @@ pub struct Cursive { pub type ScreenId = usize; /// Convenient alias to the result of `Cursive::cb_sink`. +/// +/// # Notes +/// +/// Callbacks need to be `Send`, which can be limiting in some cases. +/// +/// In some case [`send_wrapper`] may help you work around that. +/// +/// [`send_wrapper`]: https://crates.io/crates/send_wrapper pub type CbSink = Sender>; cfg_if::cfg_if! {