Struct async_std::io::IntoInnerError [−][src]
An error returned by into_inner
which combines an error that
happened while writing out the buffer, and the buffered writer object
which may be used to recover from the condition.
Examples
use async_std::io::BufWriter; use async_std::net::TcpStream; let buf_writer = BufWriter::new(TcpStream::connect("127.0.0.1:34251").await?); // unwrap the TcpStream and flush the buffer let stream = match buf_writer.into_inner().await { Ok(s) => s, Err(e) => { // Here, e is an IntoInnerError panic!("An error occurred"); } };
Trait Implementations
Auto Trait Implementations
impl<W> !RefUnwindSafe for IntoInnerError<W>
impl<W> Send for IntoInnerError<W> where
W: Send,
W: Send,
impl<W> Sync for IntoInnerError<W> where
W: Sync,
W: Sync,
impl<W> Unpin for IntoInnerError<W> where
W: Unpin,
W: Unpin,
impl<W> !UnwindSafe for IntoInnerError<W>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,