[][src]Struct tokio_global::single::Runtime

pub struct Runtime { /* fields omitted */ }

Guard that controls lifetime of Runtime module

On drop, it terminates runtime making it impossible to use it any longer.

Methods

impl Runtime[src]

pub fn new() -> Result<Self>[src]

Initializes new runtime and returns guard that controls its lifetime.

This function must be called prior to any usage of runtime related functionality.

Panics

If runtime is already initialized.

Trait Implementations

impl Drop for Runtime[src]

Auto Trait Implementations

impl !Send for Runtime

impl !Sync for Runtime

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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> Erased for T