[−][src]Struct qt_core::QMessageLogContext
The QMessageLogContext class provides additional information about a log message.
C++ class: QMessageLogContext
.
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]
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>
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()
.
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
impl Send for QMessageLogContext
impl Sync for QMessageLogContext
impl Unpin for QMessageLogContext
impl UnwindSafe for QMessageLogContext
impl RefUnwindSafe for QMessageLogContext
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,