pub struct ExecutorConfig<R, S> {
pub router: Arc<R>,
pub storage: Arc<S>,
}Expand description
Command executor configuration.
Fields§
§router: Arc<R>Router for navigation commands
storage: Arc<S>Storage for persistence commands
Implementations§
Source§impl<R, S> ExecutorConfig<R, S>
impl<R, S> ExecutorConfig<R, S>
Sourcepub fn new(router: R, storage: S) -> ExecutorConfig<R, S>
pub fn new(router: R, storage: S) -> ExecutorConfig<R, S>
Create a new executor config.
Auto Trait Implementations§
impl<R, S> Freeze for ExecutorConfig<R, S>
impl<R, S> RefUnwindSafe for ExecutorConfig<R, S>where
R: RefUnwindSafe,
S: RefUnwindSafe,
impl<R, S> Send for ExecutorConfig<R, S>
impl<R, S> Sync for ExecutorConfig<R, S>
impl<R, S> Unpin for ExecutorConfig<R, S>
impl<R, S> UnwindSafe for ExecutorConfig<R, S>where
R: RefUnwindSafe,
S: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more