pub struct ReadLock<'a, 'b, K, R> {
pub key: &'a K,
pub lock: RwLockReadGuard<'b, R>,
}Expand description
Used to lengthen the timing of the release of a readable lock guard and to provide a more convenient way for external access to the lock’s internal data.
Fields§
§key: &'a K§lock: RwLockReadGuard<'b, R>Implementations§
Auto Trait Implementations§
impl<'a, 'b, K, R> Freeze for ReadLock<'a, 'b, K, R>
impl<'a, 'b, K, R> !RefUnwindSafe for ReadLock<'a, 'b, K, R>
impl<'a, 'b, K, R> !Send for ReadLock<'a, 'b, K, R>
impl<'a, 'b, K, R> Sync for ReadLock<'a, 'b, K, R>
impl<'a, 'b, K, R> Unpin for ReadLock<'a, 'b, K, R>
impl<'a, 'b, K, R> !UnwindSafe for ReadLock<'a, 'b, K, R>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request