iota-sdk 2.0.0-beta.1

The IOTA SDK provides developers with a seamless experience to develop on IOTA by providing account abstractions and clients to interact with node APIs.
Documentation
// Copyright 2023 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

/// MQTT related errors.
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum Error {
    /// Client error.
    #[error("client error {0}")]
    Client(#[from] rumqttc::ClientError),
    /// Connection not found.
    #[error("connection not found")]
    ConnectionNotFound,
    /// Crypto error.
    #[error("crypto error {0}")]
    Crypto(#[from] crypto::Error),
    /// Invalid topic.
    #[error("invalid topic {0}")]
    InvalidTopic(String),
}