Struct nvim_gtk::subscriptions::Subscription[][src]

struct Subscription {
    cb: Box<dyn Fn(Vec<String>) + 'static>,
    args: Vec<String>,
}

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 !RefUnwindSafe for Subscription

impl !Send for Subscription

impl !Sync for Subscription

impl Unpin for Subscription

impl !UnwindSafe for Subscription

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.