Skip to main content

NonBlockingError

Trait NonBlockingError 

pub trait NonBlockingError: Sized {
    // Required method
    fn into_non_blocking(self) -> Option<Self>;
}
Available on crate feature ws only.
Expand description

Non-blocking IO handling.

Required Methods§

fn into_non_blocking(self) -> Option<Self>

Convert WouldBlock to None and don’t touch other errors.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

§

impl NonBlockingError for compio::buf::bumpalo::core_alloc::io::Error

§

impl NonBlockingError for compio::ws::tungstenite::Error