macro_rules! impl_release_callback {
($name: ident, $ctx_ty: ty) => { ... };
($name: ident, const $ctx_ty: ty) => { ... };
}
Expand description
Generate a callback that free the context when the stream created by SysFSEventStream::new
is released.
Usage: impl_release_callback!(release_ctx, YourCtxType)