pub struct Config<TMsg>where
TMsg: MsgDataBound,{
pub fn_process: Box<dyn Fn(MsgBusInput<TMsg>, MsgBusOutput<TMsg>) -> BoxFuture<'static, CmpResult> + Send + Sync>,
}Expand description
Настройки cmp_external_fn_process
Fields§
§fn_process: Box<dyn Fn(MsgBusInput<TMsg>, MsgBusOutput<TMsg>) -> BoxFuture<'static, CmpResult> + Send + Sync>Внешняя функция для выполнения
Выполняемую асинхронную функцию fn_external необходимо обернуть в функцию.
Trait Implementations§
Source§impl<TMsg> IComponentProcess<Config<TMsg>, TMsg> for Component<Config<TMsg>, TMsg>where
TMsg: MsgDataBound,
impl<TMsg> IComponentProcess<Config<TMsg>, TMsg> for Component<Config<TMsg>, TMsg>where
TMsg: MsgDataBound,
Auto Trait Implementations§
impl<TMsg> Freeze for Config<TMsg>
impl<TMsg> !RefUnwindSafe for Config<TMsg>
impl<TMsg> Send for Config<TMsg>
impl<TMsg> Sync for Config<TMsg>
impl<TMsg> Unpin for Config<TMsg>
impl<TMsg> UnsafeUnpin for Config<TMsg>
impl<TMsg> !UnwindSafe for Config<TMsg>
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