windows::Foundation::Diagnostics

Trait ILoggingTarget_Impl

pub trait ILoggingTarget_Impl: IUnknownImpl {
    // Required methods
    fn IsEnabled(&self) -> Result<bool>;
    fn IsEnabledWithLevel(&self, level: LoggingLevel) -> Result<bool>;
    fn IsEnabledWithLevelAndKeywords(
        &self,
        level: LoggingLevel,
        keywords: i64,
    ) -> Result<bool>;
    fn LogEvent(&self, eventName: &HSTRING) -> Result<()>;
    fn LogEventWithFields(
        &self,
        eventName: &HSTRING,
        fields: Ref<'_, LoggingFields>,
    ) -> Result<()>;
    fn LogEventWithFieldsAndLevel(
        &self,
        eventName: &HSTRING,
        fields: Ref<'_, LoggingFields>,
        level: LoggingLevel,
    ) -> Result<()>;
    fn LogEventWithFieldsAndOptions(
        &self,
        eventName: &HSTRING,
        fields: Ref<'_, LoggingFields>,
        level: LoggingLevel,
        options: Ref<'_, LoggingOptions>,
    ) -> Result<()>;
    fn StartActivity(&self, startEventName: &HSTRING) -> Result<LoggingActivity>;
    fn StartActivityWithFields(
        &self,
        startEventName: &HSTRING,
        fields: Ref<'_, LoggingFields>,
    ) -> Result<LoggingActivity>;
    fn StartActivityWithFieldsAndLevel(
        &self,
        startEventName: &HSTRING,
        fields: Ref<'_, LoggingFields>,
        level: LoggingLevel,
    ) -> Result<LoggingActivity>;
    fn StartActivityWithFieldsAndOptions(
        &self,
        startEventName: &HSTRING,
        fields: Ref<'_, LoggingFields>,
        level: LoggingLevel,
        options: Ref<'_, LoggingOptions>,
    ) -> Result<LoggingActivity>;
}

Required Methods§

fn IsEnabled(&self) -> Result<bool>

fn IsEnabledWithLevel(&self, level: LoggingLevel) -> Result<bool>

fn IsEnabledWithLevelAndKeywords( &self, level: LoggingLevel, keywords: i64, ) -> Result<bool>

fn LogEvent(&self, eventName: &HSTRING) -> Result<()>

fn LogEventWithFields( &self, eventName: &HSTRING, fields: Ref<'_, LoggingFields>, ) -> Result<()>

fn LogEventWithFieldsAndLevel( &self, eventName: &HSTRING, fields: Ref<'_, LoggingFields>, level: LoggingLevel, ) -> Result<()>

fn LogEventWithFieldsAndOptions( &self, eventName: &HSTRING, fields: Ref<'_, LoggingFields>, level: LoggingLevel, options: Ref<'_, LoggingOptions>, ) -> Result<()>

fn StartActivity(&self, startEventName: &HSTRING) -> Result<LoggingActivity>

fn StartActivityWithFields( &self, startEventName: &HSTRING, fields: Ref<'_, LoggingFields>, ) -> Result<LoggingActivity>

fn StartActivityWithFieldsAndLevel( &self, startEventName: &HSTRING, fields: Ref<'_, LoggingFields>, level: LoggingLevel, ) -> Result<LoggingActivity>

fn StartActivityWithFieldsAndOptions( &self, startEventName: &HSTRING, fields: Ref<'_, LoggingFields>, level: LoggingLevel, options: Ref<'_, LoggingOptions>, ) -> Result<LoggingActivity>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§