pub struct Config<TMsg>where
    TMsg: MsgDataBound,{
    pub serde_alg: SerdeAlgKind,
    pub client_id: String,
    pub host: String,
    pub port: u16,
    pub client_capacity: usize,
    pub publish: ConfigPublish<TMsg>,
    pub subscribe: ConfigSubscribe<TMsg>,
}Expand description
Конфигурация cmp_mqtt_client
Fields§
§serde_alg: SerdeAlgKindАлгоритм сериализации / десериализации
client_id: StringИдентификатор клиента MQTT
host: StringАдрес брокера
Примеры:
localhost
port: u16Порт брокера.
По-умолчанию - 1883
client_capacity: usizeЁмкость клиента.
Можно задать 100
publish: ConfigPublish<TMsg>Настройка публикации данных в брокере
subscribe: ConfigSubscribe<TMsg>Настройка подписки на данные из брокера
Trait Implementations§
Source§impl<TMsg> IComponentProcess<Config<TMsg>, TMsg> for Component<Config<TMsg>, TMsg>where
    TMsg: MsgDataBound + 'static,
 
impl<TMsg> IComponentProcess<Config<TMsg>, TMsg> for Component<Config<TMsg>, TMsg>where
    TMsg: MsgDataBound + 'static,
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