[][src]Struct pavo_common::sys_error::SysError

pub struct SysError(_);

定义系统错误。

Implementations

impl SysError[src]

pub fn last() -> Self[src]

从系统当前 errno 创建一个 SysError 对象。

pub fn is_err(self) -> bool[src]

检测是否为出错状态。

pub fn is_ok(self) -> bool[src]

检测是否为无错状态。

pub fn map_or<T>(self, other: T) -> Result<T, SysError>[src]

当无错时将返回值映射为其他值。

pub fn to_str(&self) -> Cow<str>[src]

返回文本描述。

Trait Implementations

impl Clone for SysError[src]

impl Copy for SysError[src]

impl Debug for SysError[src]

impl Default for SysError[src]

impl Display for SysError[src]

impl Eq for SysError[src]

impl Error for SysError[src]

impl From<i32> for SysError[src]

impl Into<i32> for SysError[src]

impl PartialEq<SysError> for SysError[src]

impl StructuralEq for SysError[src]

impl StructuralPartialEq for SysError[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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> ToString for T where
    T: Display + ?Sized
[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.