diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/daemon.rs | 17 | 
1 files changed, 16 insertions, 1 deletions
| diff --git a/src/daemon.rs b/src/daemon.rs index 6a6ad133..81254bf9 100644 --- a/src/daemon.rs +++ b/src/daemon.rs @@ -2,7 +2,7 @@  use crate::application;  use crate::program::{self, Program};  use crate::window; -use crate::{Element, Font, Result, Settings, Subscription, Task}; +use crate::{Element, Executor, Font, Result, Settings, Subscription, Task};  use std::borrow::Cow; @@ -223,6 +223,21 @@ impl<P: Program> Daemon<P> {              settings: self.settings,          }      } + +    /// Sets the executor of the [`Daemon`]. +    pub fn executor<E>( +        self, +    ) -> Daemon< +        impl Program<State = P::State, Message = P::Message, Theme = P::Theme>, +    > +    where +        E: Executor, +    { +        Daemon { +            raw: program::with_executor::<P, E>(self.raw), +            settings: self.settings, +        } +    }  }  /// The title logic of some [`Daemon`]. | 
