pub struct Config<TMsg>where
TMsg: MsgDataBound,{
pub fn_generate_self_counter: fn(_: u8) -> Message<TMsg>,
pub generate_self_period: Duration,
pub fn_find_partner_counter: fn(_: &Message<TMsg>) -> Option<u8>,
pub fn_check_partner_counter: fn(_: bool) -> Message<TMsg>,
pub check_partner_period: Duration,
}
Expand description
Конфигурация cmp_check_livecounter
Fields§
§fn_generate_self_counter: fn(_: u8) -> Message<TMsg>
Функция для формирования сообщения о собственном счетчике
generate_self_period: Duration
Период создания сообщения о собственном счетчике
fn_find_partner_counter: fn(_: &Message<TMsg>) -> Option<u8>
Ищем сообщения со значением счетчика
fn_check_partner_counter: fn(_: bool) -> Message<TMsg>
Функция для формирования сообщения о наличии связи. В функцию передается булевое значение, указывающее на наличие связи. true - есть связь, false - нет связи.
check_partner_period: Duration
Период проверки счетчика на наличие связи
Trait Implementations§
Source§impl<TMsg, TService> IComponentProcess<Config<TMsg>, TMsg, TService> for Component<Config<TMsg>, TMsg, TService>where
TMsg: MsgDataBound + 'static,
TService: 'static + ServiceBound,
impl<TMsg, TService> IComponentProcess<Config<TMsg>, TMsg, TService> for Component<Config<TMsg>, TMsg, TService>where
TMsg: MsgDataBound + 'static,
TService: 'static + ServiceBound,
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> 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