Struct svc_storage::grpc::server::vertipad_group::MEM_DATA_LINKS
source · pub struct MEM_DATA_LINKS { /* private fields */ }
Expand description
In memory data used for mock client implementation
Methods from Deref<Target = Mutex<HashMap<String, Vec<String>>>>§
pub fn try_lock(&self) -> Option<MutexGuard<'_, T>>
pub fn try_lock(&self) -> Option<MutexGuard<'_, T>>
Attempt to acquire the lock immediately.
If the lock is currently held, this will return None
.
pub fn try_lock_owned(self: &Arc<Mutex<T>>) -> Option<OwnedMutexGuard<T>>
pub fn try_lock_owned(self: &Arc<Mutex<T>>) -> Option<OwnedMutexGuard<T>>
Attempt to acquire the lock immediately.
If the lock is currently held, this will return None
.
pub fn lock(&self) -> MutexLockFuture<'_, T>
pub fn lock(&self) -> MutexLockFuture<'_, T>
Acquire the lock asynchronously.
This method returns a future that will resolve once the lock has been successfully acquired.
pub fn lock_owned(self: Arc<Mutex<T>>) -> OwnedMutexLockFuture<T>
pub fn lock_owned(self: Arc<Mutex<T>>) -> OwnedMutexLockFuture<T>
Acquire the lock asynchronously.
This method returns a future that will resolve once the lock has been successfully acquired.
Trait Implementations§
source§impl Deref for MEM_DATA_LINKS
impl Deref for MEM_DATA_LINKS
impl LazyStatic for MEM_DATA_LINKS
Auto Trait Implementations§
impl RefUnwindSafe for MEM_DATA_LINKS
impl Send for MEM_DATA_LINKS
impl Sync for MEM_DATA_LINKS
impl Unpin for MEM_DATA_LINKS
impl UnwindSafe for MEM_DATA_LINKS
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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