[−][src]Struct status::InternalStatus
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]
ⓘImportant traits for Chain<'a>
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,