docs

v0.1.0 문서를 보고 있습니다. 이 버전은 더 이상 지원하지 않습니다. 최신 릴리스: v0.1.3 →

bare::ffi::objc::error

이 페이지의 내용

API 참조는 영어로만 있습니다. 표준 라이브러리 소스의 영어 문서 주석에서 만듭니다.

NSError, what a method that reports through a last NSError ** parameter throws.

Structs

NSErrorSource

pub struct NSError

NSError, Foundation's error class.

Trait implementations 1

ErrorSource

pub struct Error

An NSError a method reported, thrown by throws (objc::Error).

  • pub fn ns_error(self) -> Id<NSError> | none§

    Source

    The NSError; none when the method failed without one.

  • pub fn domain(self) -> str§

    Source

    -[NSError domain] ("NSCocoaErrorDomain", ..).

  • pub fn code(self) -> isize§

    Source

    -[NSError code], within the domain.

  • pub fn localizedDescription(self) -> str§

    Source

    -[NSError localizedDescription].

Trait implementations 3