pub struct RcuReadScope { /* private fields */ }Expand description
A scope that holds a read lock on the RCU state machine.
This scope is used to ensure that the object referenced by the pointer remains valid until the scope is dropped.
Implementations§
Source§impl RcuReadScope
impl RcuReadScope
Sourcepub fn new() -> RcuReadScope
pub fn new() -> RcuReadScope
Create a new read scope.
This function acquires a read lock on the RCU state machine. The read lock is held until the scope is dropped.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RcuReadScope
impl RefUnwindSafe for RcuReadScope
impl !Send for RcuReadScope
impl !Sync for RcuReadScope
impl Unpin for RcuReadScope
impl UnsafeUnpin for RcuReadScope
impl UnwindSafe for RcuReadScope
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more