rust-macios 0.4.2

Apple Frameworks for Rust
Documentation
use crate::{
    background_tasks::bg_task::IBGTask,
    object,
    objective_c_runtime::{macros::interface_impl, traits::PNSObject},
};

object! {
    /// An object representing a short task typically used to refresh content
    /// that’s run while the app is in the background.
    unsafe pub struct BGAppRefreshTask;
}

#[interface_impl(BGTask)]
impl BGAppRefreshTask {}

impl IBGTask for BGAppRefreshTask {}

impl Default for BGAppRefreshTask {
    fn default() -> Self {
        Self::m_new()
    }
}