[][src]Trait tungstenite::util::NonBlockingResult

pub trait NonBlockingResult {
    type Result;
    fn no_block(self) -> Self::Result;
}

Non-blocking IO wrapper.

This trait is implemented for Result<T, E: NonBlockingError>.

Associated Types

type Result

Type of the converted result: Result<Option<T>, E>

Loading content...

Required methods

fn no_block(self) -> Self::Result

Perform the non-block conversion.

Loading content...

Implementations on Foreign Types

impl<T, E> NonBlockingResult for StdResult<T, E> where
    E: NonBlockingError
[src]

type Result = StdResult<Option<T>, E>

Loading content...

Implementors

Loading content...