buttplug_core 10.0.1

Buttplug Intimate Hardware Control Library - Core Library
// Buttplug Rust Source Code File - See https://buttplug.io for more info.
//
// Copyright 2016-2026 Nonpolynomial Labs LLC. All rights reserved.
//
// Licensed under the BSD 3-Clause license. See LICENSE file in the project root
// for full license information.

use futures::{
  future::{Future, RemoteHandle},
  task::{FutureObj, Spawn, SpawnError},
};

#[derive(Default)]
pub struct DummyAsyncManager {}

impl Spawn for DummyAsyncManager {
  fn spawn_obj(&self, _: FutureObj<'static, ()>) -> Result<(), SpawnError> {
    unimplemented!("Dummy executor can't actually spawn!")
  }
}

pub fn spawn<Fut>(_: Fut)
where
  Fut: Future<Output = ()> + Send + 'static,
{
  unimplemented!("Dummy executor can't actually spawn!")
}

pub fn spawn_with_handle<Fut>(_: Fut) -> Result<RemoteHandle<Fut::Output>, SpawnError>
where
  Fut: Future + Send + 'static,
  Fut::Output: Send,
{
  unimplemented!("Dummy executor can't actually spawn!")
}