#[non_exhaustive]pub enum BrokerType {
SecureMqtt,
MqttWss,
MqttWs,
Mqtt,
}Expand description
A broker transport, declared in the specification’s preference order
(framework.md:330-335), so Ord ranks the most preferred first. That
order is the default; a client sets its own with BrokerConfig::accept.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SecureMqtt
_secure-mqtt._tcp: MQTT over TLS.
MqttWss
_mqtt-wss._tcp: MQTT over secure WebSocket.
MqttWs
_mqtt-ws._tcp: MQTT over WebSocket.
Mqtt
_mqtt._tcp: plain MQTT.
Implementations§
Source§impl BrokerType
impl BrokerType
Trait Implementations§
Source§impl Clone for BrokerType
impl Clone for BrokerType
impl Copy for BrokerType
Source§impl Debug for BrokerType
impl Debug for BrokerType
impl Eq for BrokerType
Source§impl Hash for BrokerType
impl Hash for BrokerType
Source§impl Ord for BrokerType
impl Ord for BrokerType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for BrokerType
impl PartialEq for BrokerType
Source§impl PartialOrd for BrokerType
impl PartialOrd for BrokerType
impl StructuralPartialEq for BrokerType
Auto Trait Implementations§
impl Freeze for BrokerType
impl RefUnwindSafe for BrokerType
impl Send for BrokerType
impl Sync for BrokerType
impl Unpin for BrokerType
impl UnsafeUnpin for BrokerType
impl UnwindSafe for BrokerType
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