pub struct RcuLockGuard<'a, T> { /* private fields */ }Expand description
A guard that holds the update lock for an RcuLock or DynamicRcuLock and provides
exclusive writer access to the underlying RCU primitive T.
Implementations§
Source§impl<T: RcuDroppable + Sync> RcuLockGuard<'_, RcuArray<T>>
impl<T: RcuDroppable + Sync> RcuLockGuard<'_, RcuArray<T>>
Sourcepub fn ensure_at_least(&self, requested_size: usize)
pub fn ensure_at_least(&self, requested_size: usize)
Ensures that the array has at least requested_size elements, filling with
T::default() if the array needs to be grown.
Trait Implementations§
Source§impl<T: Debug> Debug for RcuLockGuard<'_, T>
impl<T: Debug> Debug for RcuLockGuard<'_, T>
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for RcuLockGuard<'a, T>
impl<'a, T> !Send for RcuLockGuard<'a, T>
impl<'a, T> !Sync for RcuLockGuard<'a, T>
impl<'a, T> !UnwindSafe for RcuLockGuard<'a, T>
impl<'a, T> Freeze for RcuLockGuard<'a, T>
impl<'a, T> Unpin for RcuLockGuard<'a, T>
impl<'a, T> UnsafeUnpin for RcuLockGuard<'a, T>where
&'a T: UnsafeUnpin,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§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,
§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
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