oxygengine-network-backend-native 0.24.0

Network Native backend module for Oxygengine
Documentation
pub struct DoOnDrop {
    executor: Box<dyn FnMut()>,
}

impl DoOnDrop {
    pub fn new<F>(executor: F) -> Self
    where
        F: 'static + FnMut(),
    {
        Self {
            executor: Box::new(executor),
        }
    }
}

impl Drop for DoOnDrop {
    fn drop(&mut self) {
        (self.executor)();
    }
}