Struct vulkano::instance::debug::DebugUtilsMessengerCreateInfo
source · 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§
source§impl DebugUtilsMessengerCreateInfo
impl DebugUtilsMessengerCreateInfo
sourcepub fn user_callback(
user_callback: Arc<dyn Fn(&Message<'_>) + RefUnwindSafe + Send + Sync>
) -> Self
pub fn user_callback(
user_callback: Arc<dyn Fn(&Message<'_>) + RefUnwindSafe + Send + Sync>
) -> Self
Returns a DebugUtilsMessengerCreateInfo
with the specified user_callback
.
Trait Implementations§
source§impl Clone for DebugUtilsMessengerCreateInfo
impl Clone for DebugUtilsMessengerCreateInfo
source§fn clone(&self) -> DebugUtilsMessengerCreateInfo
fn clone(&self) -> DebugUtilsMessengerCreateInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more