ashpd 0.13.10

XDG portals wrapper in Rust using zbus
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[cfg(feature = "tokio")]
pub struct TokioSpawner;

#[cfg(feature = "tokio")]
impl futures_util::task::Spawn for TokioSpawner {
    fn spawn_obj(
        &self,
        future: futures_util::task::FutureObj<'static, ()>,
    ) -> std::result::Result<(), futures_util::task::SpawnError> {
        tokio::spawn(future);
        Ok(())
    }
}