File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -139,9 +139,9 @@ where
139
139
/// This method creates a `VolatileRef` tied to the lifetime of the `&VolatileRef` it is created from.
140
140
/// This is useful for providing a volatile reference without moving the original `VolatileRef`.
141
141
/// In comparison with creating a `&VolatileRef<'a, T>`, this avoids the additional indirection and lifetime.
142
- pub fn borrow ( & self ) -> VolatileRef < ' _ , T , A :: RestrictShared >
142
+ pub fn borrow ( & self ) -> VolatileRef < ' _ , T , A :: Restricted >
143
143
where
144
- A : Access ,
144
+ A : RestrictAccess < ReadOnly > ,
145
145
{
146
146
unsafe { VolatileRef :: new_restricted ( Default :: default ( ) , self . pointer ) }
147
147
}
@@ -161,9 +161,9 @@ where
161
161
/// Borrows this `VolatileRef` as a read-only [`VolatilePtr`].
162
162
///
163
163
/// Use this method to do (partial) volatile reads of the referenced data.
164
- pub fn as_ptr ( & self ) -> VolatilePtr < ' _ , T , A :: RestrictShared >
164
+ pub fn as_ptr ( & self ) -> VolatilePtr < ' _ , T , A :: Restricted >
165
165
where
166
- A : Access ,
166
+ A : RestrictAccess < ReadOnly > ,
167
167
{
168
168
unsafe { VolatilePtr :: new_restricted ( Default :: default ( ) , self . pointer ) }
169
169
}
You can’t perform that action at this time.
0 commit comments