[−][src]Struct gdnative_core::user_data::MutexData
User-data wrapper encapsulating a Arc<Mutex<T>>.
The underlying Mutex may change in the future. The current implementation is
parking_lot.
Trait Implementations
impl<T, OPT> Clone for MutexData<T, OPT>[src]
fn clone(&self) -> Self[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<T: Debug, OPT: Debug> Debug for MutexData<T, OPT>[src]
impl<T, OPT> Map for MutexData<T, OPT> where
T: NativeClass + Send,
OPT: LockOptions, [src]
T: NativeClass + Send,
OPT: LockOptions,
type Err = LockFailed
fn map<F, U>(&self, op: F) -> Result<U, LockFailed> where
F: FnOnce(&T) -> U, [src]
F: FnOnce(&T) -> U,
impl<T, OPT> MapMut for MutexData<T, OPT> where
T: NativeClass + Send,
OPT: LockOptions, [src]
T: NativeClass + Send,
OPT: LockOptions,
type Err = LockFailed
fn map_mut<F, U>(&self, op: F) -> Result<U, LockFailed> where
F: FnOnce(&mut T) -> U, [src]
F: FnOnce(&mut T) -> U,
impl<T, OPT> UserData for MutexData<T, OPT> where
T: NativeClass + Send,
OPT: LockOptions, [src]
T: NativeClass + Send,
OPT: LockOptions,
Auto Trait Implementations
impl<T, OPT = DefaultLockPolicy> !RefUnwindSafe for MutexData<T, OPT>
impl<T, OPT> Send for MutexData<T, OPT> where
OPT: Send,
T: Send,
OPT: Send,
T: Send,
impl<T, OPT> Sync for MutexData<T, OPT> where
OPT: Sync,
T: Send,
OPT: Sync,
T: Send,
impl<T, OPT> Unpin for MutexData<T, OPT> where
OPT: Unpin,
OPT: Unpin,
impl<T, OPT = DefaultLockPolicy> !UnwindSafe for MutexData<T, OPT>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,