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