    match unsafe {
        match (*owner).inner.as_mut() {
            Some(owner_ref) => owner_ref.{{ method_name }}({{ meta_args }}handler),
            None => return 1, // Error: service already consumed
        }
    } {
        Ok(_) => 0, // Success
        Err(_) => 1, // Error
    }
