[][src]Struct uniui_core::SlotImpl

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

The main implementation for Slot trait. Allows to pull data from queue.


impl<T> SlotImpl<T>[src]

pub fn new() -> SlotImpl<T>[src]

Creates new instance

pub fn next(&self) -> Option<T>[src]

Try to obtain next value from SlotImpl's queue.

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

Return TryIter to access to the queue's content

pub fn last(&self) -> Option<T>[src]

Return last element from the queue

pub fn discard_pending(&self)[src]

Clean queue

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

Add new data instance to the queue

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

Creates proxy which is refer to the SlotImpl

Trait Implementations

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

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

Auto Trait Implementations

impl<T> !RefUnwindSafe for SlotImpl<T>

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

impl<T> !Sync for SlotImpl<T>

impl<T> Unpin for SlotImpl<T>

impl<T> !UnwindSafe for SlotImpl<T>

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.