Lines Matching defs:Entry
21 pub(crate) struct Entry<'a> {
24 _parent: Option<Arc<Entry<'static>>>,
29 // SAFETY: [`Entry`] is just a `dentry` under the hood, which the API promises can be transferred
31 unsafe impl Send for Entry<'_> {}
34 unsafe impl Sync for Entry<'_> {}
36 impl Entry<'static> {
48 Entry {
57 /// * `data` must outlive the returned `Entry`.
67 // * The caller guarantees that `data` will outlive the returned `Entry`.
81 Entry {
89 impl<'a> Entry<'a> {
90 pub(crate) fn dir(name: &CStr, parent: Option<&'a Entry<'_>>) -> Self {
98 // `dentry` (because `parent` is a valid reference to an `Entry`). The lifetime `'a`
102 Entry {
111 parent: &'a Entry<'_>,
117 // * `parent.as_ptr()` is a pointer to a valid `dentry` because we have `&'a Entry`.
119 // * The returned `Entry` has lifetime `'a`, so it cannot outlive `parent` or `data`.
134 Entry {
142 impl Entry<'_> {
143 /// Constructs a placeholder DebugFS [`Entry`].
164 impl Drop for Entry<'_> {