dimas-time 0.5.1

dimas-time - time library for DiMAS
Documentation
// Copyright © 2024 Stephan Kunz

//! `dimas-time` errors

#[doc(hidden)]
extern crate alloc;

#[cfg(feature = "std")]
extern crate std;

use alloc::string::String;
use thiserror::Error;

// region:		--- Error
/// `dimas-time` error type.
#[derive(Error, Debug)]
pub enum Error {
	/// a Mutex is poisoned.
	#[error("a Mutex poison error happened in {0}")]
	MutexPoison(String),
}
// region:		--- Error

#[cfg(test)]
mod tests {
	use super::*;

	// check, that the auto traits are available
	const fn is_normal<T: Sized + Send + Sync>() {}

	#[test]
	const fn normal_types() {
		is_normal::<Error>();
	}
}