Docs.rs
  • rmqtt-codec-0.1.2
    • rmqtt-codec 0.1.2
    • Docs.rs crate page
    • MIT OR Apache-2.0
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • rmqtt
    • bittcrafter
    • Dependencies
      • bitflags ^2.9.2 normal
      • bytes ^1.10 normal
      • bytestring ^1.4 normal
      • chrono ^0.4 normal
      • log ^0.4 normal
      • nonzero_ext ^0.3 normal
      • rmqtt-utils ^0.1 normal
      • serde ^1.0 normal
      • thiserror ^1.0.69 normal
      • tokio-util ^0.7 normal
      • test-case ^3.2 dev
    • Versions
    • 51.77% of the crate is documented
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

rmqtt_codec0.1.2

ToReasonCode

Required Methods

  • to_reason_code

Implementors

In rmqtt_codec::v5

rmqtt_codec::v5

Trait ToReasonCode

Source
pub trait ToReasonCode {
    // Required method
    fn to_reason_code(&self) -> DisconnectReasonCode;
}

Required Methods§

Source

fn to_reason_code(&self) -> DisconnectReasonCode

Implementors§

Source§

impl ToReasonCode for DecodeError

Source§

impl ToReasonCode for EncodeError

Source§

impl ToReasonCode for HandshakeError

Source§

impl ToReasonCode for ProtocolError

Source§

impl ToReasonCode for SendPacketError

Source§

impl ToReasonCode for PublishAck2Reason

Source§

impl ToReasonCode for PublishAckReason