summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-01-08 05:15:14 -0600
committerAlejandro Soto <alejandro@34project.org>2022-01-08 05:15:14 -0600
commitfffebe5facf7b88c89c7aaa9385aa845f161e6f1 (patch)
tree27e2bb3f3b590f14870830c6fa6243682e4e5bc7
parent32ec09aa8018370d7f33f64c3173009b025369d8 (diff)
Remove old remaining file: src/mod.rs
Diffstat (limited to '')
-rw-r--r--src/mod.rs39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/mod.rs b/src/mod.rs
deleted file mode 100644
index 98a9164..0000000
--- a/src/mod.rs
+++ /dev/null
@@ -1,39 +0,0 @@
-use crate::{proto, sealed::Sealed};
-use std::marker::PhantomData;
-
-pub mod io;
-pub mod mount;
-pub mod ops;
-pub mod session;
-
-pub trait Operation<'o>: Sealed + Sized {
- type RequestBody: crate::proto::Structured<'o>;
- type ReplyState;
-}
-
-pub type Op<'o, O = ops::Any> = (Request<'o, O>, Reply<'o, O>);
-
-pub struct Request<'o, O: Operation<'o>> {
- header: proto::InHeader,
- body: O::RequestBody,
-}
-
-#[must_use]
-pub struct Reply<'o, O: Operation<'o>> {
- session: &'o session::Session,
- unique: u64,
- state: O::ReplyState,
-}
-
-#[must_use]
-pub struct Done<'o>(PhantomData<&'o mut &'o ()>);
-
-impl Done<'_> {
- fn new() -> Self {
- Done(PhantomData)
- }
-
- fn consume(self) {
- drop(self);
- }
-}