libits-client 3.1.0

library to connect on an ITS MQTT server
Documentation
/*
 * Software Name : libits-client
 * SPDX-FileCopyrightText: Copyright (c) Orange SA
 * SPDX-License-Identifier: MIT
 *
 * This software is distributed under the MIT license,
 * see the "LICENSE.txt" file for more details or https://opensource.org/license/MIT/
 *
 * Authors: see CONTRIBUTORS.md
 */

use thiserror::Error;

#[derive(Debug, Error)]
pub enum ContentError {
    #[error("Struct {0} does not implement Mobile trait")]
    NotAMobile(&'static str),
    #[error("Struct {0} does not implement Mortal trait")]
    NotAMortal(&'static str),
    #[error("{0} type message hasn't been sent by a vehicle")]
    NotOriginatingVehicle(&'static str),
}