struct Subscription {
cb: Box<dyn Fn(Vec<String>) + 'static>,
args: Vec<String>,
}
Expand description
A subscription to a Neovim autocmd event.
Fields§
§cb: Box<dyn Fn(Vec<String>) + 'static>
A callback to be executed each time the event triggers.
args: Vec<String>
A list of expressions which will be evaluated when the event triggers. The result is passed to the callback.
Auto Trait Implementations§
impl Freeze for Subscription
impl !RefUnwindSafe for Subscription
impl !Send for Subscription
impl !Sync for Subscription
impl Unpin for Subscription
impl !UnwindSafe for Subscription
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more