[−][src]Function listen::listen
pub fn listen<T, R>(path: &str, event: Event, arg: T, func: fn(_: T) -> R)
This function takes a path to listen on, the event to listen for, and a function to execute when that event happens.
path: &str
is the directory to listen on,
event: Event
is the event to listen for,
arg: T
is the argument to pass to func
,
and
func: fn(T) -> R
is the function to execute when event happens