[−][src]Struct pavo_common::sys_error::SysError
定义系统错误。
Implementations
impl SysError
[src]
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]
当无错时将返回值映射为其他值。
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]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[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
impl RefUnwindSafe for SysError
impl Send for SysError
impl Sync for SysError
impl Unpin for SysError
impl UnwindSafe for SysError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,