[][src]Struct mod_utilities::FMTAdaptor

pub struct FMTAdaptor<'a> {
    pub error: Option<Error>,
    // some fields omitted
}

A shim which translates an io::Write to a fmt::Write

If an error occurs with the inner io::Write, it is stored in an optional member, and all further calls to fmt::Write will be short circuited until it is cleared

Safety

  • Does not call flush
  • Adapting an adaptor would cause all sorts of problems

Fields

error: Option<Error>

If an io error occurs while using a FMTAdaptor, it will be stored here and block further usage until it is resolved

Trait Implementations

impl<'a> Write for FMTAdaptor<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for FMTAdaptor<'a>

impl<'a> !Send for FMTAdaptor<'a>

impl<'a> !Sync for FMTAdaptor<'a>

impl<'a> Unpin for FMTAdaptor<'a>

impl<'a> !UnwindSafe for FMTAdaptor<'a>

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, 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.