common

Trait Mocks

Source
pub trait Mocks {
    // Required method
    fn brightness_service_impl<'async_trait>(
        handles: LocalComponentHandles,
        manual_brightness: Arc<Mutex<Option<f32>>>,
        auto_brightness: Arc<Mutex<Option<bool>>>,
        num_changes: Arc<AtomicU32>,
        requests_sender: Sender<Request>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>;
}

Required Methods§

Source

fn brightness_service_impl<'async_trait>( handles: LocalComponentHandles, manual_brightness: Arc<Mutex<Option<f32>>>, auto_brightness: Arc<Mutex<Option<bool>>>, num_changes: Arc<AtomicU32>, requests_sender: Sender<Request>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§