Lines Matching defs:Registration
280 /// [`Registration::new()`].
295 // SAFETY: `ptr` is non-null and was set via `into_foreign()` in `Registration::new()`;
304 // `F::Of<'static>`; `ptr` remains valid until `Registration::drop()` calls
329 // SAFETY: `adev` points to the memory that has been allocated in `Registration::new`, via
411 pub struct Registration<'a, F: ForLt + 'static> {
416 impl<'a, F: ForLt> Registration<'a, F>
427 /// The caller must not `mem::forget()` the returned [`Registration`] or otherwise prevent its
431 /// If the registration data is `'static`, use the safe [`Registration::new()`] instead.
450 // SAFETY: `'a` is invariant (via `Registration`'s `PhantomData`). Lifetimes do not
509 /// Safe variant of [`Registration::new_with_lt()`] for registration data that does not contain
523 // so forgetting the `Registration` cannot cause use-after-free.
528 impl<F: ForLt> Drop for Registration<'_, F> {
549 // SAFETY: A `Registration` of a `struct auxiliary_device` can be released from any thread.
550 unsafe impl<F: ForLt> Send for Registration<'_, F> where for<'a> F::Of<'a>: Send {}
552 // SAFETY: `Registration` does not expose any methods or fields that need synchronization.
553 unsafe impl<F: ForLt> Sync for Registration<'_, F> where for<'a> F::Of<'a>: Send {}