logo
pub struct DebugUtilsMessengerCreateInfo {
    pub message_severity: DebugUtilsMessageSeverity,
    pub message_type: DebugUtilsMessageType,
    pub user_callback: Arc<dyn Fn(&Message<'_>) + RefUnwindSafe + Send + Sync>,
    pub _ne: NonExhaustive,
}
Expand description

Parameters to create a DebugUtilsMessenger.

Fields

message_severity: DebugUtilsMessageSeverity

The message severity types that the callback should be called for.

The value must not be empty.

The default value is MessageSeverity::errors_and_warnings().

message_type: DebugUtilsMessageType

The message types that the callback should be called for.

The value must not be empty.

The default value is MessageType::general().

user_callback: Arc<dyn Fn(&Message<'_>) + RefUnwindSafe + Send + Sync>

The closure that should be called.

The closure must not make any calls to the Vulkan API. If the closure panics, the panic is caught and ignored.

The callback is provided inside an Arc so that it can be shared across multiple messengers.

_ne: NonExhaustive

Implementations

Returns a DebugUtilsMessengerCreateInfo with the specified user_callback.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.