Lines Matching refs:T
67 pub struct Revocable<T> {
70 data: Opaque<T>,
76 unsafe impl<T: Send> Send for Revocable<T> {}
81 unsafe impl<T: Sync + Send> Sync for Revocable<T> {}
83 impl<T> Revocable<T> {
85 pub fn new<E>(data: impl PinInit<T, E>) -> impl PinInit<Self, E> { in new() argument
99 pub fn try_access(&self) -> Option<RevocableGuard<'_, T>> { in try_access() argument
118 pub fn try_access_with_guard<'a>(&'a self, _guard: &'a rcu::Guard) -> Option<&'a T> { in try_access_with_guard() argument
140 pub fn try_access_with<R, F: FnOnce(&T) -> R>(&self, f: F) -> Option<R> { in try_access_with()
150 pub unsafe fn access(&self) -> &T { in access() argument
212 impl<T> PinnedDrop for Revocable<T> {
235 pub struct RevocableGuard<'a, T> {
240 data_ref: *const T,
245 impl<T> RevocableGuard<'_, T> {
246 fn new(data_ref: *const T, rcu_guard: rcu::Guard) -> Self { in new() argument
255 impl<T> Deref for RevocableGuard<'_, T> {
256 type Target = T;