mas_iana/
lib.rs

1// Copyright 2022 The Matrix.org Foundation C.I.C.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//! Values from IANA registries, generated by the `mas-iana-codegen` crate
16
17#![deny(missing_docs)]
18#![allow(clippy::module_name_repetitions)]
19
20pub mod jose;
21pub mod oauth;
22
23/// An error that occurred while parsing a value from a string.
24pub struct ParseError {
25    _private: (),
26}
27
28impl ParseError {
29    fn new() -> Self {
30        Self { _private: () }
31    }
32}
33
34impl core::fmt::Debug for ParseError {
35    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
36        f.write_str("ParseError")
37    }
38}
39
40impl core::fmt::Display for ParseError {
41    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
42        f.write_str("Parse error")
43    }
44}
45
46impl std::error::Error for ParseError {}