[−][src]Trait weechat::buffer::BufferInputCallbackAsync
This is supported on
async
only.Trait for the buffer input callback.
This is the async version of the callback.
A blanket implementation for pure FnMut
functions exists, if data needs to
be passed to the callback implement this over your struct.
Required methods
#[must_use]fn callback<'life0, 'async_trait>(
&'life0 mut self,
buffer: BufferHandle,
input: String
) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 mut self,
buffer: BufferHandle,
input: String
) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
This is supported on
async
only.Callback that will be called if the user inputs something into the buffer input field.
Arguments
-
weechat
- A Weechat context. -
buffer
- The buffer that the user inputed some text into. -
input
- The input that was posted by the user.