1 2 3 4 5 6 7 8 9 10 11
// SPDX-FileCopyrightText: 2022 perillamint // // SPDX-License-Identifier: MIT use custom_error::custom_error; custom_error! { pub TimeflakeError RNGError{msg: String} = "RNG Error: {msg}", SystemTimeError{msg: String} = "SystemTime Error: {msg}", MalformedData{msg: String} = "Malformed data: {msg}", }