pub trait NightModeProxyInterface: Send + Sync {
    type WatchResponseFut: Future<Output = Result<NightModeSettings, Error>> + Send;
    type SetResponseFut: Future<Output = Result<NightModeSetResult, Error>> + Send;

    // Required methods
    fn watch(&self) -> Self::WatchResponseFut;
    fn set(&self, settings: &NightModeSettings) -> Self::SetResponseFut;
}

Required Associated Types§

Required Methods§

source

fn watch(&self) -> Self::WatchResponseFut

source

fn set(&self, settings: &NightModeSettings) -> Self::SetResponseFut

Implementors§