aboutsummaryrefslogtreecommitdiff
path: root/src/private/any_factory.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/private/any_factory.rs')
-rw-r--r--src/private/any_factory.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/private/any_factory.rs b/src/private/any_factory.rs
new file mode 100644
index 0000000..bdd68a6
--- /dev/null
+++ b/src/private/any_factory.rs
@@ -0,0 +1,11 @@
+//! Interface for any factory to ever exist.
+
+use std::fmt::Debug;
+
+use crate::private::cast::{CastFrom, CastFromSync};
+
+/// Interface for any factory to ever exist.
+pub trait AnyFactory: CastFrom + Debug {}
+
+/// Interface for any threadsafe factory to ever exist.
+pub trait AnyThreadsafeFactory: CastFromSync + Debug {}