If the operation creating the handle fails for some reason, exposing that error is currently quite difficult. Could the signature of new perhaps be changed to
fn new<F, E>(o: O, f: F) -> Result<Self, E>
where F: Fn(*const O::Target) -> Result<H, E> {}
If the operation creating the handle fails for some reason, exposing that error is currently quite difficult. Could the signature of
new
perhaps be changed to