Lines Matching refs:Registration
4 //! This module provides types like [`Registration`] and
52 /// - `irq` has not been registered yet; this is consumed by [`Registration::new()`].
56 /// lifetime, ensuring the [`Registration`] cannot outlive it.
85 /// The following is an example of using `Registration`. It uses a
105 /// Registration,
131 /// ) -> Result<Pin<KBox<Registration<'_, Data>>>> {
132 /// // SAFETY: The returned Registration is not leaked.
134 /// Registration::new(
157 pub struct Registration<'a, T: Handler> {
169 impl<'a, T: Handler> Registration<'a, T> {
174 /// Callers must not `mem::forget()` the returned [`Registration`] or otherwise prevent its
226 impl<T: Handler> PinnedDrop for Registration<'_, T> {
228 // SAFETY: The cookie was set to a pointer to `Self` in `Registration::new()`. This blocks
244 let ptr = ptr.cast_const().cast::<Registration<'_, T>>();
245 // SAFETY: `ptr` is a pointer to `Registration<'_, T>` set in `Registration::new()`.
344 /// // SAFETY: The returned Registration is not leaked.