[][src]Enum spirit::error::ErrorLogFormat

#[non_exhaustive]pub enum ErrorLogFormat {
    MultiLine,
    SingleLine,
}

How to format errors in logs.

The enum is non-exhaustive ‒ more variants may be added in the future and it won't be considered an API breaking change.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MultiLine

Multi-cause error will span multiple log messages.

SingleLine

The error is formatted on a single line.

The causes are separated by semicolons.

Trait Implementations

impl Clone for ErrorLogFormat[src]

impl Copy for ErrorLogFormat[src]

impl Debug for ErrorLogFormat[src]

impl Eq for ErrorLogFormat[src]

impl Hash for ErrorLogFormat[src]

impl Ord for ErrorLogFormat[src]

impl PartialEq<ErrorLogFormat> for ErrorLogFormat[src]

impl PartialOrd<ErrorLogFormat> for ErrorLogFormat[src]

impl StructuralEq for ErrorLogFormat[src]

impl StructuralPartialEq for ErrorLogFormat[src]

Auto Trait Implementations

impl RefUnwindSafe for ErrorLogFormat

impl Send for ErrorLogFormat

impl Sync for ErrorLogFormat

impl Unpin for ErrorLogFormat

impl UnwindSafe for ErrorLogFormat

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoResult<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.