Lines Matching refs:T
65 pub struct Revocable<T> {
68 data: Opaque<T>,
74 unsafe impl<T: Send> Send for Revocable<T> {}
79 unsafe impl<T: Sync + Send> Sync for Revocable<T> {}
81 impl<T> Revocable<T> {
83 pub fn new(data: impl PinInit<T>) -> impl PinInit<Self> { in new()
97 pub fn try_access(&self) -> Option<RevocableGuard<'_, T>> { in try_access() argument
116 pub fn try_access_with_guard<'a>(&'a self, _guard: &'a rcu::Guard) -> Option<&'a T> { in try_access_with_guard() argument
172 impl<T> PinnedDrop for Revocable<T> {
195 pub struct RevocableGuard<'a, T> {
196 data_ref: *const T,
201 impl<T> RevocableGuard<'_, T> {
202 fn new(data_ref: *const T, rcu_guard: rcu::Guard) -> Self { in new() argument
211 impl<T> Deref for RevocableGuard<'_, T> {
212 type Target = T;