[][src]Struct fumio::reactor::LazyHandle

pub struct LazyHandle { /* fields omitted */ }

Refers to a specific handle or to the current handle.

Use LazyHandle::from(handle) to initialize with a specific handle.

Methods

impl LazyHandle[src]

pub const fn new() -> LazyHandle[src]

Use the current handle (at the time bind is called).

pub fn is_bound(&self) -> bool[src]

Whether this is bound to a specific Handle or bind will return the current Handle.

pub fn bind(&self) -> Option<Handle>[src]

Return the Handle this was created with or current if no specific handle was specified.

Trait Implementations

impl Debug for LazyHandle[src]

impl Clone for LazyHandle[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for LazyHandle[src]

impl From<Handle> for LazyHandle[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for 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> Borrow<T> for T where
    T: ?Sized
[src]

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

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