pal::unix

Trait TryAsErrno

Source
pub trait TryAsErrno {
    // Required method
    fn try_as_errno(&self) -> Option<Errno>;
}
Expand description

Trait for extracting a Unix error value from an error type.

Required Methods§

Source

fn try_as_errno(&self) -> Option<Errno>

Gets the Unix error value if there is one.

Implementations on Foreign Types§

Source§

impl TryAsErrno for Error

Implementors§