summaryrefslogtreecommitdiff
path: root/src/ops/traits.rs
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-01-06 03:42:56 -0600
committerAlejandro Soto <alejandro@34project.org>2022-01-06 03:42:56 -0600
commita65325e15844f880132a69b447e4aec983cb30ab (patch)
treef7485d114c139b9a1acf8d4248398b14756cb221 /src/ops/traits.rs
parent587cb05ec42417a05ed371d500b8734b10cf60f7 (diff)
Implement Symlink
Diffstat (limited to 'src/ops/traits.rs')
-rw-r--r--src/ops/traits.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ops/traits.rs b/src/ops/traits.rs
index 6a4b1ce..52aaed3 100644
--- a/src/ops/traits.rs
+++ b/src/ops/traits.rs
@@ -5,7 +5,7 @@ use crate::{
pub use super::{
dir::{ReplyEntries, ReplyFound},
- entry::{ReplyStat, RequestForget, RequestLink},
+ entry::{ReplyStat, RequestForget, RequestLink, RequestTarget},
global::ReplyFsInfo,
open::{ReplyOpen, ReplyPermissionDenied},
rw::ReplyAll,
@@ -146,6 +146,13 @@ impl<'o, O: Operation<'o>> Request<'o, O> {
O::forget_list(self)
}
+ pub fn target(&self) -> &OsStr
+ where
+ O: RequestTarget<'o>,
+ {
+ O::target(self)
+ }
+
pub fn source_ino(&self) -> Ino
where
O: RequestLink<'o>,