mqtt_protocol_core/mqtt/packet/
mod.rs

1/**
2 * MIT License
3 *
4 * Copyright (c) 2025 Takatoshi Kondo
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 * copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in all
14 * copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 * SOFTWARE.
23 */
24mod mqtt_string;
25pub use self::mqtt_string::MqttString;
26mod mqtt_binary;
27pub use self::mqtt_binary::MqttBinary;
28
29mod enum_packet;
30mod enum_store_packet;
31mod property;
32mod qos;
33pub use self::qos::Qos;
34mod retain_handling;
35pub use self::retain_handling::RetainHandling;
36mod sub_entry;
37pub use self::sub_entry::{SubEntry, SubOpts};
38mod variable_byte_integer;
39pub use self::variable_byte_integer::{DecodeResult, VariableByteInteger};
40mod packet_type;
41pub use self::packet_type::{FixedHeader, PacketType};
42mod packet_id;
43pub use self::packet_id::IsPacketId;
44pub mod v3_1_1;
45pub mod v5_0;
46pub use self::enum_packet::{GenericPacket, GenericPacketDisplay, GenericPacketTrait, Packet};
47pub use self::enum_store_packet::{GenericStorePacket, ResponsePacket, StorePacket};
48pub use self::property::PayloadFormat;
49mod json_bin_encode;
50#[cfg(feature = "std")]
51pub use self::property::PropertiesToBuffers;
52pub use self::property::{
53    AssignedClientIdentifier, AuthenticationData, AuthenticationMethod, ContentType,
54    CorrelationData, MaximumPacketSize, MaximumQos, MessageExpiryInterval, PayloadFormatIndicator,
55    Properties, PropertiesParse, PropertiesSize, Property, PropertyId, ReasonString,
56    ReceiveMaximum, RequestProblemInformation, RequestResponseInformation, ResponseInformation,
57    ResponseTopic, RetainAvailable, ServerKeepAlive, ServerReference, SessionExpiryInterval,
58    SharedSubscriptionAvailable, SubscriptionIdentifier, SubscriptionIdentifierAvailable,
59    TopicAlias, TopicAliasMaximum, UserProperty, WildcardSubscriptionAvailable, WillDelayInterval,
60};
61pub use json_bin_encode::escape_binary_json_string;
62
63mod topic_alias_send;
64pub use self::topic_alias_send::TopicAliasSend;
65mod topic_alias_recv;
66pub use self::topic_alias_recv::TopicAliasRecv;
67
68pub mod kind;
69pub mod prelude;