pub struct Config<TMsg>where
TMsg: MsgDataBound,{
pub delay: Duration,
pub msgs: Vec<Message<TMsg>>,
}
Expand description
Настройка компонента cmp_create_if_not_exist
Fields§
§delay: Duration
Задержка создания сообщений
msgs: Vec<Message<TMsg>>
Вектор сообщений, которые генерируются, если отсутствуют в кеше
Trait Implementations§
Source§impl<TMsg, TService> IComponentProcess<Config<TMsg>, TMsg, TService> for Component<Config<TMsg>, TMsg, TService>where
TMsg: MsgDataBound + 'static,
TService: ServiceBound,
impl<TMsg, TService> IComponentProcess<Config<TMsg>, TMsg, TService> for Component<Config<TMsg>, TMsg, TService>where
TMsg: MsgDataBound + 'static,
TService: ServiceBound,
Auto Trait Implementations§
impl<TMsg> Freeze for Config<TMsg>
impl<TMsg> RefUnwindSafe for Config<TMsg>where
TMsg: RefUnwindSafe,
impl<TMsg> Send for Config<TMsg>
impl<TMsg> Sync for Config<TMsg>
impl<TMsg> Unpin for Config<TMsg>where
TMsg: Unpin,
impl<TMsg> UnwindSafe for Config<TMsg>where
TMsg: 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