Struct libpulse_binding::mainloop::signal::Event
[−]
[src]
pub struct Event { /* fields omitted */ }
An opaque UNIX signal event source object This acts as a safe Rust wrapper for the actual C object.
Methods
impl Event
[src]
pub fn new(sig: i32, cb: (SignalCb, *mut c_void)) -> Self
[src]
Create a new UNIX signal event source object
pub fn signal_set_destroy(&mut self, callback: DestroyCb)
[src]
Set a function that is called when the signal event source is destroyed. Use this to free the userdata argument if required