aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDirk Van Haerenborgh <vhdirk@gmail.com>2018-04-13 17:19:17 +0200
committerDirk Van Haerenborgh <vhdirk@gmail.com>2018-04-13 17:19:17 +0200
commit52050a5e1dcd613915135e217439bc6293bea257 (patch)
tree34b34e173098065f448a0879fbec12f9933c139c /src
parent61d4a904cc60a07be4ca506eaa7ae2088a57aecf (diff)
downloadmail-52050a5e1dcd613915135e217439bc6293bea257.tar.gz
I think these are actually Send'able, but certainly no Sync
Diffstat (limited to 'src')
-rw-r--r--src/database.rs2
-rw-r--r--src/directory.rs2
-rw-r--r--src/filenames.rs3
-rw-r--r--src/message.rs2
-rw-r--r--src/messages.rs2
-rw-r--r--src/query.rs2
-rw-r--r--src/tags.rs2
-rw-r--r--src/thread.rs2
-rw-r--r--src/threads.rs2
9 files changed, 19 insertions, 0 deletions
diff --git a/src/database.rs b/src/database.rs
index c212745..314c354 100644
--- a/src/database.rs
+++ b/src/database.rs
@@ -220,3 +220,5 @@ impl ops::Drop for Database {
};
}
}
+
+unsafe impl Send for Database{}
diff --git a/src/directory.rs b/src/directory.rs
index c3b313b..7237100 100644
--- a/src/directory.rs
+++ b/src/directory.rs
@@ -39,3 +39,5 @@ impl<'d> ops::Drop for Directory<'d> {
};
}
}
+
+unsafe impl<'d> Send for Directory<'d>{}
diff --git a/src/filenames.rs b/src/filenames.rs
index 42d43d4..0d32bd6 100644
--- a/src/filenames.rs
+++ b/src/filenames.rs
@@ -61,3 +61,6 @@ impl<'d> iter::Iterator for Filenames<'d> {
Some(PathBuf::from(ctag.to_str().unwrap()))
}
}
+
+
+unsafe impl<'d> Send for Filenames<'d>{}
diff --git a/src/message.rs b/src/message.rs
index ec4473f..a1f7816 100644
--- a/src/message.rs
+++ b/src/message.rs
@@ -81,3 +81,5 @@ impl<'q, 'd> ops::Drop for Message<'q, 'd> {
};
}
}
+
+unsafe impl<'q, 'd> Send for Message<'q, 'd>{}
diff --git a/src/messages.rs b/src/messages.rs
index 16cf741..94b823c 100644
--- a/src/messages.rs
+++ b/src/messages.rs
@@ -68,3 +68,5 @@ impl<'q, 'd> iter::Iterator for Messages<'q, 'd> {
Some(Self::Item::new(cmsg))
}
}
+
+unsafe impl<'q, 'd> Send for Messages<'q, 'd>{}
diff --git a/src/query.rs b/src/query.rs
index 1fe4e0d..aa5d9f5 100644
--- a/src/query.rs
+++ b/src/query.rs
@@ -114,3 +114,5 @@ impl<'d> ops::Drop for Query<'d> {
};
}
}
+
+unsafe impl<'d> Send for Query<'d>{}
diff --git a/src/tags.rs b/src/tags.rs
index 52fa440..c58f670 100644
--- a/src/tags.rs
+++ b/src/tags.rs
@@ -59,3 +59,5 @@ impl<'d> iter::Iterator for Tags<'d> {
Some(ctag.to_str().unwrap().to_string())
}
}
+
+unsafe impl<'d> Send for Tags<'d>{}
diff --git a/src/thread.rs b/src/thread.rs
index 98832a6..97b005a 100644
--- a/src/thread.rs
+++ b/src/thread.rs
@@ -114,3 +114,5 @@ impl<'q, 'd> ops::Drop for Thread<'q, 'd> {
};
}
}
+
+unsafe impl<'q, 'd> Send for Thread<'q, 'd>{}
diff --git a/src/threads.rs b/src/threads.rs
index ebfa52c..2d6d7c4 100644
--- a/src/threads.rs
+++ b/src/threads.rs
@@ -54,3 +54,5 @@ impl<'q, 'd> iter::Iterator for Threads<'q, 'd> {
Some(Self::Item::new(cthread))
}
}
+
+unsafe impl<'q, 'd> Send for Threads<'q, 'd>{}