Struct ReuniteError

pub struct ReuniteError<T>(pub ReadHalf<T>, pub WriteHalf<T>);

Error indicating a ReadHalf<T> and WriteHalf<T> were not two halves of a AsyncRead + AsyncWrite, and thus could not be reunited.

Fields

0: ReadHalf<T>
1: WriteHalf<T>

Trait Implementations

impl<T> Debug for ReuniteError<T>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<T> Display for ReuniteError<T>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<T: Any> Error for ReuniteError<T>

Auto Trait Implementations

impl<T> !RefUnwindSafe for ReuniteError<T>

impl<T> !UnwindSafe for ReuniteError<T>

impl<T> Freeze for ReuniteError<T> where ReadHalf<T>: Freeze, WriteHalf<T>: Freeze,

impl<T> Send for ReuniteError<T> where ReadHalf<T>: Send, WriteHalf<T>: Send,

impl<T> Sync for ReuniteError<T> where ReadHalf<T>: Sync, WriteHalf<T>: Sync,

impl<T> Unpin for ReuniteError<T> where ReadHalf<T>: Unpin, WriteHalf<T>: Unpin,

impl<T> UnsafeUnpin for ReuniteError<T> where ReadHalf<T>: UnsafeUnpin, WriteHalf<T>: UnsafeUnpin,

Blanket Implementations

impl<T> Any for ReuniteError<T> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for ReuniteError<T> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for ReuniteError<T> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for ReuniteError<T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToString for ReuniteError<T> where T: Display + ?Sized,

fn to_string(&self) -> String

impl<T, U> Into<U> for ReuniteError<T> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for ReuniteError<T> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for ReuniteError<T> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>