MTLLogState

Trait MTLLogState 

Source
pub unsafe trait MTLLogState:
    NSObjectProtocol
    + Send
    + Sync {
    // Provided method
    unsafe fn addLogHandler(
        &self,
        block: &DynBlock<dyn Fn(*mut NSString, *mut NSString, MTLLogLevel, NonNull<NSString>)>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature MTLLogState only.
Expand description

Provided Methods§

Source

unsafe fn addLogHandler( &self, block: &DynBlock<dyn Fn(*mut NSString, *mut NSString, MTLLogLevel, NonNull<NSString>)>, )
where Self: Sized + Message,

Available on crate feature block2 only.

Add a function block to handle log message output. In the absence of any handlers, log messages go through the default handler.

§Safety

block block must be sendable.

Trait Implementations§

Source§

impl ProtocolType for dyn MTLLogState

Source§

const NAME: &'static str = "MTLLogState"

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 MTLLogState
where T: ?Sized + Message + MTLLogState,

Implementations on Foreign Types§

Source§

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

Implementors§