Struct libpulse_binding::mainloop::signal::Event [−][src]
pub struct Event { /* fields omitted */ }An opaque UNIX signal event source object.
Note: Saves a copy of the closure callbacks, which it frees on drop.
Methods
impl Event[src]
impl Eventpub fn new<F>(sig: i32, callback: F) -> Self where
F: FnMut(i32) + 'static, [src]
pub fn new<F>(sig: i32, callback: F) -> Self where
F: FnMut(i32) + 'static, Create a new UNIX signal event source object
The callback must accept an integer which represents the signal