[][src]Struct gdnative_core::user_data::LocalCellData

pub struct LocalCellData<T> { /* fields omitted */ }

User-data wrapper analogous to a Arc<RefCell<T>>, that is restricted to the thread where it was originally created.

This works by checking ThreadId before touching the underlying reference. If the id doesn't match the original thread, map and map_mut will return an error.

Trait Implementations

impl<T> Clone for LocalCellData<T>[src]

impl<T: Debug> Debug for LocalCellData<T>[src]

impl<T> Map for LocalCellData<T> where
    T: NativeClass
[src]

type Err = LocalCellError

impl<T> MapMut for LocalCellData<T> where
    T: NativeClass
[src]

type Err = LocalCellError

impl<T> UserData for LocalCellData<T> where
    T: NativeClass
[src]

type Target = T

Auto Trait Implementations

impl<T> !RefUnwindSafe for LocalCellData<T>

impl<T> Send for LocalCellData<T>

impl<T> Sync for LocalCellData<T>

impl<T> Unpin for LocalCellData<T>

impl<T> !UnwindSafe for LocalCellData<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.