[][src]Struct qt_core::QtMsgType

#[repr(transparent)]pub struct QtMsgType(_);

This enum describes the messages that can be sent to a message handler (QtMessageHandler). You can use the enum to identify and associate the various message types with the appropriate actions.

C++ enum: QtMsgType.

C++ documentation:

This enum describes the messages that can be sent to a message handler (QtMessageHandler). You can use the enum to identify and associate the various message types with the appropriate actions.

QtInfoMsg was added in Qt 5.5.

See also QtMessageHandler and qInstallMessageHandler().

Methods

impl QtMsgType[src]

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

impl QtMsgType[src]

pub const QtDebugMsg: QtMsgType[src]

A message generated by the qDebug() function. (C++ enum variant: QtDebugMsg = 0)

pub const QtWarningMsg: QtMsgType[src]

A message generated by the qWarning() function. (C++ enum variant: QtWarningMsg = 1)

pub const QtCriticalMsg: QtMsgType[src]

A message generated by the qCritical() function. (C++ enum variant: QtCriticalMsg = 2)

pub const QtFatalMsg: QtMsgType[src]

A message generated by the qFatal() function. (C++ enum variant: QtFatalMsg = 3)

pub const QtInfoMsg: QtMsgType[src]

A message generated by the qInfo() function. (C++ enum variant: QtInfoMsg = 4)

pub const QtSystemMsg: QtMsgType[src]

  (C++ enum variant: QtSystemMsg = 2)

Trait Implementations

impl Clone for QtMsgType[src]

impl Copy for QtMsgType[src]

impl Debug for QtMsgType[src]

impl Eq for QtMsgType[src]

impl From<QtMsgType> for c_int[src]

impl From<i32> for QtMsgType[src]

impl PartialEq<QtMsgType> for QtMsgType[src]

impl StructuralEq for QtMsgType[src]

impl StructuralPartialEq for QtMsgType[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.