We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f338a9 commit 3eefa9aCopy full SHA for 3eefa9a
src/request.rs
@@ -19,6 +19,8 @@ use crate::reply::ReplyDirectoryPlus;
19
use crate::reply::{Reply, ReplyDirectory, ReplySender};
20
use crate::session::{Session, SessionACL};
21
use crate::Filesystem;
22
+#[cfg(feature = "abi-7-11")]
23
+use crate::Notifier;
24
use crate::{ll, KernelConfig};
25
26
/// Request data structure
@@ -643,6 +645,13 @@ impl<'a> Request<'a> {
643
645
Reply::new(self.request.unique().into(), self.ch.clone())
644
646
}
647
648
+ /// Create a [Notifier] that can be used to send notifications back to the
649
+ /// kernel.
650
+ #[cfg(feature = "abi-7-11")]
651
+ pub fn notifier(&self) -> Notifier {
652
+ Notifier::new(self.ch.clone())
653
+ }
654
+
655
/// Returns the unique identifier of this request
656
#[inline]
657
pub fn unique(&self) -> u64 {
0 commit comments