[][src]Struct polyhorn_core::EventLoop

pub struct EventLoop { /* fields omitted */ }

Event loop that is used internally.

Implementations

impl EventLoop[src]

pub fn new() -> (EventLoop, EventLoopHandler)[src]

Returns a new loop and its handler. The handler should be send to the dedicated Polyhorn thread while the reference-counted loop itself can be shared among all threads.

pub fn queue<F>(&self, task: F) -> Disposable where
    F: Future<Output = ()> + 'static, 
[src]

pub fn queue_retain<F>(&self, task: F) where
    F: Future<Output = ()> + 'static, 
[src]

Trait Implementations

impl Drop for EventLoop[src]

Auto Trait Implementations

impl !RefUnwindSafe for EventLoop

impl !Send for EventLoop

impl !Sync for EventLoop

impl Unpin for EventLoop

impl !UnwindSafe for EventLoop

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.