pub struct NetMutex<T: NetObject, S: Subscribable + 'static> { /* private fields */ }
Implementations§
Source§impl<S: Subscribable + 'static, T: NetObject> NetMutex<T, S>
impl<S: Subscribable + 'static, T: NetObject> NetMutex<T, S>
pub fn create<'a>(app: &'a S, value: Option<T>) -> NetMutexLoader<'a, T, S> ⓘwhere
T: 'a,
Sourcepub fn lock(&self) -> NetMutexGuardAcquirer<'_, T, S> ⓘ
pub fn lock(&self) -> NetMutexGuardAcquirer<'_, T, S> ⓘ
Returns a future which resolves once the lock can be established with the network
Trait Implementations§
Auto Trait Implementations§
impl<T, S> Freeze for NetMutex<T, S>
impl<T, S> !RefUnwindSafe for NetMutex<T, S>
impl<T, S> Send for NetMutex<T, S>
impl<T, S> Sync for NetMutex<T, S>
impl<T, S> Unpin for NetMutex<T, S>
impl<T, S> !UnwindSafe for NetMutex<T, S>
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