pub struct Config<TMsg, TFnPeriodic>{
pub period: Duration,
pub fn_periodic: TFnPeriodic,
}
Expand description
Конфигурация cmp_inject_periodic
Fields§
§period: Duration
Период вызова
fn_periodic: TFnPeriodic
Функция для генерирования сообщений
Тип данных - FnMut() -> Vec<Message<TMsg>>
Trait Implementations§
Source§impl<TMsg, TFnPeriodic, TService> IComponentProcess<Config<TMsg, TFnPeriodic>, TMsg, TService> for Component<Config<TMsg, TFnPeriodic>, TMsg, TService>where
TMsg: MsgDataBound,
TFnPeriodic: FnMut() -> Vec<Message<TMsg>> + Send + Sync,
TService: ServiceBound,
impl<TMsg, TFnPeriodic, TService> IComponentProcess<Config<TMsg, TFnPeriodic>, TMsg, TService> for Component<Config<TMsg, TFnPeriodic>, TMsg, TService>where
TMsg: MsgDataBound,
TFnPeriodic: FnMut() -> Vec<Message<TMsg>> + Send + Sync,
TService: ServiceBound,
Auto Trait Implementations§
impl<TMsg, TFnPeriodic> Freeze for Config<TMsg, TFnPeriodic>where
TFnPeriodic: Freeze,
impl<TMsg, TFnPeriodic> RefUnwindSafe for Config<TMsg, TFnPeriodic>where
TFnPeriodic: RefUnwindSafe,
impl<TMsg, TFnPeriodic> Send for Config<TMsg, TFnPeriodic>
impl<TMsg, TFnPeriodic> Sync for Config<TMsg, TFnPeriodic>
impl<TMsg, TFnPeriodic> Unpin for Config<TMsg, TFnPeriodic>where
TFnPeriodic: Unpin,
impl<TMsg, TFnPeriodic> UnwindSafe for Config<TMsg, TFnPeriodic>where
TFnPeriodic: UnwindSafe,
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