diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-01-05 07:58:36 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-01-05 07:58:36 -0600 |
| commit | 587cb05ec42417a05ed371d500b8734b10cf60f7 (patch) | |
| tree | d043876ba64f4573453a743a609f4e485142332f /src/ops/traits.rs | |
| parent | fe2ec80b262e6457b896f23ec91e4fe9da4b8117 (diff) | |
Implement Link
Diffstat (limited to 'src/ops/traits.rs')
| -rw-r--r-- | src/ops/traits.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ops/traits.rs b/src/ops/traits.rs index 9808358..6a4b1ce 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}, + entry::{ReplyStat, RequestForget, RequestLink}, global::ReplyFsInfo, open::{ReplyOpen, ReplyPermissionDenied}, rw::ReplyAll, @@ -145,6 +145,13 @@ impl<'o, O: Operation<'o>> Request<'o, O> { { O::forget_list(self) } + + pub fn source_ino(&self) -> Ino + where + O: RequestLink<'o>, + { + O::source_ino(self) + } } impl<'o, O: Operation<'o>> Reply<'o, O> { |
