OSLogEntryWithPayload

Trait OSLogEntryWithPayload 

Source
pub unsafe trait OSLogEntryWithPayload {
    // Provided methods
    unsafe fn category(&self) -> Retained<NSString>
       where Self: Sized + Message { ... }
    unsafe fn components(&self) -> Retained<NSArray<OSLogMessageComponent>>
       where Self: Sized + Message { ... }
    unsafe fn formatString(&self) -> Retained<NSString>
       where Self: Sized + Message { ... }
    unsafe fn subsystem(&self) -> Retained<NSString>
       where Self: Sized + Message { ... }
}
Expand description

Entry subclasses conforming to this protocol represent entries that were made using a handle and a format string.

See also Apple’s documentation

Provided Methods§

Source

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

The category from the os_log_t handle used.

Source

unsafe fn components(&self) -> Retained<NSArray<OSLogMessageComponent>>
where Self: Sized + Message,

An array of the various parts of the composed message.

Source

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

The format string used.

Source

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

The subsystem of the os_log_t handle used.

Trait Implementations§

Source§

impl ProtocolType for dyn OSLogEntryWithPayload

Source§

const NAME: &'static str = "OSLogEntryWithPayload"

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 OSLogEntryWithPayload

Implementations on Foreign Types§

Source§

impl<T> OSLogEntryWithPayload for ProtocolObject<T>

Implementors§