pub struct Adaptor<T> {
pub inner: T,
pub error: Result<(), Error>,
}
Expand description
Used to wrap a std::io::Write
to have std::io::Write
.
The underlying error can be extracted through the error field.
Fields§
§inner: T
§error: Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Adaptor<T>
impl<T> Send for Adaptor<T>where T: Send,
impl<T> Sync for Adaptor<T>where T: Sync,
impl<T> Unpin for Adaptor<T>where T: Unpin,
impl<T> !UnwindSafe for Adaptor<T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more