pub struct MqttConfig {
pub port: u16,
pub host: String,
pub max_connections: usize,
pub max_packet_size: usize,
pub keep_alive_secs: u16,
pub version: MqttVersion,
}Expand description
MQTT broker configuration
Fields§
§port: u16§host: String§max_connections: usize§max_packet_size: usize§keep_alive_secs: u16§version: MqttVersionTrait Implementations§
Source§impl Clone for MqttConfig
impl Clone for MqttConfig
Source§fn clone(&self) -> MqttConfig
fn clone(&self) -> MqttConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MqttConfig
impl Debug for MqttConfig
Auto Trait Implementations§
impl Freeze for MqttConfig
impl RefUnwindSafe for MqttConfig
impl Send for MqttConfig
impl Sync for MqttConfig
impl Unpin for MqttConfig
impl UnwindSafe for MqttConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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