mqtt_protocol_core/mqtt/packet/
mod.rs

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