Enum kailua_diag::report::Kind
[−]
[src]
pub enum Kind { Note, Info, Cause, Warning, Error, Fatal, }
The diagnostic category.
Some categories can be nested in other category like this:
[Error] The root message
[Cause] More detailed cause
[Cause] Even more detailed cause
[Note] Hints or additional spans for the innermost cause
[Cause] Multiple causes can exist at the same level
[Note] Hints or additional spans for the root message
Variants
Note
A note following other reports.
Normally used when there are multiple spans need to be displayed.
Info
An informative message.
This is not generated by any default procedure and can only be issued with a flag or manual intervention.
Cause
An item following other reports, used for causes of prior warnings or errors.
Warning
A warning indicating a possible problem which does not directly lead an error.
Error
An error indicating a definitive problem.
The report is considered a failure from this point, but won't block the following procedure.
Fatal
So severe error that the process cannot proceed (in principle).
In practice this category is extremely rare and is highly discouraged.
Methods
impl Kind
[src]
Trait Implementations
impl Copy for Kind
[src]
impl Clone for Kind
[src]
fn clone(&self) -> Kind
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Kind
[src]
fn eq(&self, __arg_0: &Kind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for Kind
[src]
impl PartialOrd for Kind
[src]
fn partial_cmp(&self, __arg_0: &Kind) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Kind
[src]
fn cmp(&self, __arg_0: &Kind) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl Hash for Kind
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more