Struct vulkano::instance::debug::DebugUtilsMessengerCreateInfo
source · pub struct DebugUtilsMessengerCreateInfo {
pub message_severity: DebugUtilsMessageSeverity,
pub message_type: DebugUtilsMessageType,
pub user_callback: Arc<DebugUtilsMessengerCallback>,
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<DebugUtilsMessengerCallback>
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.
_ne: NonExhaustive
Implementations§
source§impl DebugUtilsMessengerCreateInfo
impl DebugUtilsMessengerCreateInfo
sourcepub fn user_callback(user_callback: Arc<DebugUtilsMessengerCallback>) -> Self
pub fn user_callback(user_callback: Arc<DebugUtilsMessengerCallback>) -> 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 moreAuto Trait Implementations§
impl RefUnwindSafe for DebugUtilsMessengerCreateInfo
impl Send for DebugUtilsMessengerCreateInfo
impl Sync for DebugUtilsMessengerCreateInfo
impl Unpin for DebugUtilsMessengerCreateInfo
impl UnwindSafe for DebugUtilsMessengerCreateInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more