pub struct ROUTES { /* private fields */ }Methods from Deref<Target = Mutex<Vec<Route>>>§
Sourcepub 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.
Sourcepub 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.
Sourcepub 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.
Sourcepub 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§
Auto Trait Implementations§
impl Freeze for ROUTES
impl RefUnwindSafe for ROUTES
impl Send for ROUTES
impl Sync for ROUTES
impl Unpin for ROUTES
impl UnwindSafe for ROUTES
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