[][src]Struct status::InternalStatus

pub struct InternalStatus<K: Kind, C: Context>(_);

View of Status, exposing implementation details.

Error::source and InternalStatus::sources are for debug / display purposes only and relying on them programmatically is likely to break across minor releases.

Example

fn display_status(status: status::Status) {
    if std::env::var("DEBUG").as_ref().map(|s| s.as_ref()).unwrap_or("0") == "1" {
        let status = status.into_internal();
        println!("{}", status);
    } else {
        println!("{}", status);
    }
}

Methods

impl<K: Kind, C: Context> InternalStatus<K, C>[src]

Important traits for Chain<'a>
pub fn sources(&self) -> Chain[src]

An iterator for the chain of sources, private or public.

Trait Implementations

impl<K: Kind, C: Context> Display for InternalStatus<K, C>[src]

impl<K: Debug + Kind, C: Debug + Context> Debug for InternalStatus<K, C>[src]

impl<K: Kind, C: Context> Error for InternalStatus<K, C>[src]

Auto Trait Implementations

impl<K, C> !Send for InternalStatus<K, C>

impl<K, C> !Sync for InternalStatus<K, C>

impl<K, C> Unpin for InternalStatus<K, C>

impl<K, C> !UnwindSafe for InternalStatus<K, C>

impl<K, C> !RefUnwindSafe for InternalStatus<K, C>

Blanket Implementations

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

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

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

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