Struct nvim_gtk::ui::UiMutex[][src]

pub struct UiMutex<T: ?Sized> {
    thread: ThreadId,
    data: RefCell<T>,
}

Fields

thread: ThreadIddata: RefCell<T>

Implementations

impl<T> UiMutex<T>[src]

pub fn new(t: T) -> UiMutex<T>[src]

impl<T> UiMutex<T>[src]

pub fn replace(&self, t: T) -> T[src]

impl<T: ?Sized> UiMutex<T>[src]

pub fn borrow(&self) -> Ref<'_, T>[src]

pub fn borrow_mut(&self) -> RefMut<'_, T>[src]

fn assert_ui_thread(&self)[src]

Trait Implementations

impl<T: ?Sized> Send for UiMutex<T>[src]

impl<T: ?Sized> Sync for UiMutex<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for UiMutex<T>

impl<T: ?Sized> Unpin for UiMutex<T> where
    T: Unpin

impl<T: ?Sized> UnwindSafe for UiMutex<T> where
    T: UnwindSafe

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, 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.