Trait tungstenite::util::NonBlockingResult

source ·
pub trait NonBlockingResult {
    type Result;

    // Required method
    fn no_block(self) -> Self::Result;
}
Expand description

Non-blocking IO wrapper.

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

Required Associated Types§

source

type Result

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

Required Methods§

source

fn no_block(self) -> Self::Result

Perform the non-block conversion.

Implementations on Foreign Types§

source§

impl<T, E> NonBlockingResult for Result<T, E>

§

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

source§

fn no_block(self) -> Self::Result

Implementors§