[][src]Struct web3_etz::transports::EventLoopHandle

pub struct EventLoopHandle { /* fields omitted */ }

Event Loop Handle. NOTE: Event loop is stopped when handle is dropped!

Methods

impl EventLoopHandle[src]

pub fn spawn<T, F>(func: F) -> Result<(Self, T)> where
    F: FnOnce(&Handle) -> Result<T>,
    F: Send + 'static,
    T: Send + 'static, 
[src]

Creates a new EventLoopHandle and transport given the transport initializer.

pub fn remote(&self) -> &Remote[src]

Returns event loop remote.

pub fn into_remote(self) -> Remote[src]

Convert this handle into a Remote.

Note while dropping EventLoopHandle will stop the underlying event loop, dropping the Remote will not. You need manually call Remote::stop to stop the background thread.

Trait Implementations

impl Drop for EventLoopHandle[src]

impl Debug for EventLoopHandle[src]

Auto Trait Implementations

Blanket Implementations

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.

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

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

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

impl<T> Erased for T

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.