mas_iana/
lib.rs

1// Copyright 2024 New Vector Ltd.
2// Copyright 2022-2024 The Matrix.org Foundation C.I.C.
3//
4// SPDX-License-Identifier: AGPL-3.0-only
5// Please see LICENSE in the repository root for full details.
6
7//! Values from IANA registries, generated by the `mas-iana-codegen` crate
8
9#![deny(missing_docs)]
10#![allow(clippy::module_name_repetitions)]
11
12pub mod jose;
13pub mod oauth;
14
15/// An error that occurred while parsing a value from a string.
16pub struct ParseError {
17    _private: (),
18}
19
20impl ParseError {
21    fn new() -> Self {
22        Self { _private: () }
23    }
24}
25
26impl core::fmt::Debug for ParseError {
27    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
28        f.write_str("ParseError")
29    }
30}
31
32impl core::fmt::Display for ParseError {
33    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
34        f.write_str("Parse error")
35    }
36}
37
38impl std::error::Error for ParseError {}