[−][src]Struct web3_etz::transports::EventLoopHandle
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]
F: FnOnce(&Handle) -> Result<T>,
F: Send + 'static,
T: Send + 'static,
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
impl !Unpin for EventLoopHandle
impl Sync for EventLoopHandle
impl Send for EventLoopHandle
impl !UnwindSafe for EventLoopHandle
impl !RefUnwindSafe for EventLoopHandle
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Typeable for T where
T: Any,
T: Any,