aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/factory.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-11-19 15:45:12 +0100
committerHampusM <hampus@hampusmat.com>2022-11-19 15:45:12 +0100
commit9f27a925bd323e8e0864bedeb33a3c6953517ea1 (patch)
treeea5d8faaed82c58fa037fa377173bb365e1cd697 /src/interfaces/factory.rs
parentd99cbf9fa95856cbc14a3217e1cd3f13aeb2e0b3 (diff)
refactor: reorganize non-public API items
Diffstat (limited to 'src/interfaces/factory.rs')
-rw-r--r--src/interfaces/factory.rs23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/interfaces/factory.rs b/src/interfaces/factory.rs
deleted file mode 100644
index c67abd6..0000000
--- a/src/interfaces/factory.rs
+++ /dev/null
@@ -1,23 +0,0 @@
-use std::marker::Tuple;
-
-use crate::libs::intertrait::CastFrom;
-use crate::ptr::TransientPtr;
-
-/// Interface for a factory.
-pub trait IFactory<Args, ReturnInterface>:
- Fn<Args, Output = TransientPtr<ReturnInterface>> + CastFrom
-where
- Args: Tuple,
- ReturnInterface: 'static + ?Sized,
-{
-}
-
-/// Interface for a threadsafe factory.
-#[cfg(feature = "async")]
-pub trait IThreadsafeFactory<Args, ReturnInterface>:
- Fn<Args, Output = TransientPtr<ReturnInterface>> + crate::libs::intertrait::CastFromSync
-where
- Args: Tuple,
- ReturnInterface: 'static + ?Sized,
-{
-}