Struct vulkano::instance::debug::MessageTypes
source · pub struct MessageTypes {
pub error: bool,
pub warning: bool,
pub performance_warning: bool,
pub information: bool,
pub debug: bool,
}
Expand description
Type of message.
Fields
error: bool
An error that may cause undefined results, including an application crash.
warning: bool
An unexpected use.
performance_warning: bool
A potential non-optimal use.
information: bool
An informational message that may be handy when debugging an application.
debug: bool
Diagnostic information from the loader and layers.
Implementations
sourceimpl MessageTypes
impl MessageTypes
sourcepub fn errors() -> MessageTypes
pub fn errors() -> MessageTypes
Builds a MessageTypes
with all fields set to false
expect error
.
sourcepub fn errors_and_warnings() -> MessageTypes
pub fn errors_and_warnings() -> MessageTypes
Builds a MessageTypes
with all fields set to false
expect error
, warning
and performance_warning
.
sourcepub fn none() -> MessageTypes
pub fn none() -> MessageTypes
Builds a MessageTypes
with all fields set to false
.
Trait Implementations
sourceimpl Clone for MessageTypes
impl Clone for MessageTypes
sourcefn clone(&self) -> MessageTypes
fn clone(&self) -> MessageTypes
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MessageTypes
impl Debug for MessageTypes
sourceimpl Hash for MessageTypes
impl Hash for MessageTypes
sourceimpl PartialEq<MessageTypes> for MessageTypes
impl PartialEq<MessageTypes> for MessageTypes
sourcefn eq(&self, other: &MessageTypes) -> bool
fn eq(&self, other: &MessageTypes) -> bool
impl Copy for MessageTypes
impl Eq for MessageTypes
impl StructuralEq for MessageTypes
impl StructuralPartialEq for MessageTypes
Auto Trait Implementations
impl RefUnwindSafe for MessageTypes
impl Send for MessageTypes
impl Sync for MessageTypes
impl Unpin for MessageTypes
impl UnwindSafe for MessageTypes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.