Struct genact::SPEED_FACTOR
source · [−]pub struct SPEED_FACTOR { /* private fields */ }
Methods from Deref<Target = Mutex<f32>>
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 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.
Trait Implementations
sourceimpl Deref for SPEED_FACTOR
impl Deref for SPEED_FACTOR
impl LazyStatic for SPEED_FACTOR
Auto Trait Implementations
impl RefUnwindSafe for SPEED_FACTOR
impl Send for SPEED_FACTOR
impl Sync for SPEED_FACTOR
impl Unpin for SPEED_FACTOR
impl UnwindSafe for SPEED_FACTOR
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more