Lines Matching full:scope
107 let scope = Scope::<T>::new(data, move |data| { in create_file() localVariable
110 // SAFETY: Because data derives from a scope, and our entry will be dropped before in create_file()
119 scope <- scope in create_file()
378 /// Creates a new scope, which is a directory associated with some data `T`.
382 /// stored in the scope.
384 /// The entire directory tree created within the scope will be removed when the returned
385 /// `Scope` handle is dropped.
386 pub fn scope<'a, T: 'a, E: 'a, F>( in scope() method
391 ) -> impl PinInit<Scope<T>, E> + 'a in scope()
395 Scope::new(data, |data| { in scope()
404 /// Handle to a DebugFS scope, which ensures that attached `data` will outlive the DebugFS entry
411 /// When dropped, a `Scope` will remove all directories and files in the filesystem backed by the
413 pub struct Scope<T> { struct
430 scope: Scope<T>, argument
434 impl<'b, T: 'b> Scope<T> { impl
445 .pin_chain(|scope| { in new()
446 init(&scope.data); in new()
453 impl<'b, T: 'b> Scope<T> { implementation
470 .pin_chain(|scope| { in new()
471 *scope.entry_mut() = init(&scope.data); in new()
477 impl<'a, T: 'a> Scope<T> { impl
478 /// Creates a new scope, which is a directory at the root of the debugfs filesystem,
482 /// files can reference the data stored in the scope.
484 /// The entire directory tree created within the scope will be removed when the returned
485 /// `Scope` handle is dropped.
494 Scope::new(data, |data| { in dir()
502 impl<T> Deref for Scope<T> { implementation
512 &self.scope in deref()
520 /// the `Scope` that created it.
551 /// file is removed when the [`Scope`] that this directory belongs
562 /// when the [`Scope`] that this directory belongs to is dropped.
580 /// file is removed when the [`Scope`] that this directory belongs
597 /// file is removed when the [`Scope`] that this directory belongs
614 /// when the [`Scope`] that this directory belongs to is dropped.
632 /// file is removed when the [`Scope`] that this directory belongs
656 /// file is removed when the [`Scope`] that this directory belongs
668 /// when the [`Scope`] that this directory belongs to is dropped.
685 /// file is removed when the [`Scope`] that this directory belongs