[][src]Struct uniui_core::SlotProxy

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

SlotProxy may be used as independed reference to the original Slot's queue.

Implementations

impl<T> SlotProxy<T>[src]

pub fn empty() -> SlotProxy<T>[src]

Create SlotProxy which is not coupled with any SlotImpl

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

Put new data instance to the related SlotImpl's queue

pub fn proxy(&self) -> SlotProxy<T>[src]

Create proxy which is refer to the same SlotImpl

It's improtant that SlotProxy doesn't organized in the chain. New SlotProxy will refer to the original SlotImpl and will not have any reference to the SlotProxy.

Trait Implementations

impl<T: Clone> Clone for SlotProxy<T>[src]

impl<T> Default for SlotProxy<T>[src]

impl<T> Slot<T> for SlotProxy<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for SlotProxy<T>

impl<T> Send for SlotProxy<T> where
    T: Send

impl<T> !Sync for SlotProxy<T>

impl<T> Unpin for SlotProxy<T>

impl<T> !UnwindSafe for SlotProxy<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.