[][src]Struct qt_core::QMessageLogContext

#[repr(C)]
pub struct QMessageLogContext { /* fields omitted */ }

The QMessageLogContext class provides additional information about a log message.

C++ class: QMessageLogContext.

C++ documentation:

The QMessageLogContext class provides additional information about a log message.

The class provides information about the source code location a qDebug(), qInfo(), qWarning(), qCritical() or qFatal() message was generated.

Note: By default, this information is recorded only in debug builds. You can overwrite this explicitly by defining QT_MESSAGELOGCONTEXT or QT_NO_MESSAGELOGCONTEXT.

Methods

impl QMessageLogContext[src]

pub unsafe fn category(&self) -> Ptr<c_char>[src]

Returns the value of the category field.

pub unsafe fn file(&self) -> Ptr<c_char>[src]

Returns the value of the file field.

pub unsafe fn function(&self) -> Ptr<c_char>[src]

Returns the value of the function field.

pub unsafe fn line(&self) -> c_int[src]

Returns the value of the line field.

pub unsafe fn new_0a() -> CppBox<QMessageLogContext>[src]

Calls C++ function: [constructor] void QMessageLogContext::QMessageLogContext().

pub unsafe fn new_4a(
    file_name: impl CastInto<Ptr<c_char>>,
    line_number: c_int,
    function_name: impl CastInto<Ptr<c_char>>,
    category_name: impl CastInto<Ptr<c_char>>
) -> CppBox<QMessageLogContext>
[src]

Calls C++ function: [constructor] void QMessageLogContext::QMessageLogContext(const char* fileName, int lineNumber, const char* functionName, const char* categoryName).

pub unsafe fn set_category(&mut self, value: impl CastInto<Ptr<c_char>>)[src]

Sets the value of the category field.

pub unsafe fn set_file(&mut self, value: impl CastInto<Ptr<c_char>>)[src]

Sets the value of the file field.

pub unsafe fn set_function(&mut self, value: impl CastInto<Ptr<c_char>>)[src]

Sets the value of the function field.

pub unsafe fn set_line(&mut self, value: c_int)[src]

Sets the value of the line field.

pub unsafe fn set_version(&mut self, value: c_int)[src]

Sets the value of the version field.

pub unsafe fn version(&self) -> c_int[src]

Returns the value of the version field.

Trait Implementations

impl CppDeletable for QMessageLogContext[src]

unsafe fn delete(&mut self)[src]

The QMessageLogContext class provides additional information about a log message.

Calls C++ function: [destructor] void QMessageLogContext::~QMessageLogContext().

C++ documentation:

The QMessageLogContext class provides additional information about a log message.

The class provides information about the source code location a qDebug(), qInfo(), qWarning(), qCritical() or qFatal() message was generated.

Note: By default, this information is recorded only in debug builds. You can overwrite this explicitly by defining QT_MESSAGELOGCONTEXT or QT_NO_MESSAGELOGCONTEXT.

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]