XCTActivity

Trait XCTActivity 

Source
pub unsafe trait XCTActivity: NSObjectProtocol {
    // Provided methods
    fn name(&self) -> Retained<NSString>
       where Self: Sized + Message { ... }
    fn addAttachment(&self, attachment: &XCTAttachment)
       where Self: Sized + Message { ... }
}
Expand description

Represents a test activity.

See also Apple’s documentation

Provided Methods§

Source

fn name(&self) -> Retained<NSString>
where Self: Sized + Message,

Human-readable name of the activity, given at creation time.

Source

fn addAttachment(&self, attachment: &XCTAttachment)
where Self: Sized + Message,

Adds an attachment which is always kept by Xcode, regardless of the test result. Thread-safe, attachments can be added from any thread, are reported in the order they are added.

Trait Implementations§

Source§

impl ProtocolType for dyn XCTActivity

Source§

const NAME: &'static str = "XCTActivity"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn XCTActivity
where T: ?Sized + Message + XCTActivity,

Implementations on Foreign Types§

Source§

impl<T> XCTActivity for ProtocolObject<T>
where T: ?Sized + XCTActivity,

Implementors§