Struct ReuniteError

pub struct ReuniteError<T, Item>(pub SplitSink<T, Item>, pub SplitStream<T>);

Error indicating a SplitSink<S> and SplitStream<S> were not two halves of a Stream + Split, and thus could not be reunited.

Fields

0: SplitSink<T, Item>
1: SplitStream<T>

Trait Implementations

impl<T, Item> Debug for ReuniteError<T, Item>

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

impl<T, Item> Display for ReuniteError<T, Item>

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

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

Auto Trait Implementations

impl<T, Item> !RefUnwindSafe for ReuniteError<T, Item>

impl<T, Item> !UnwindSafe for ReuniteError<T, Item>

impl<T, Item> Freeze for ReuniteError<T, Item> where SplitSink<T, Item>: Freeze, SplitStream<T>: Freeze,

impl<T, Item> Send for ReuniteError<T, Item> where SplitSink<T, Item>: Send, SplitStream<T>: Send,

impl<T, Item> Sync for ReuniteError<T, Item> where SplitSink<T, Item>: Sync, SplitStream<T>: Sync,

impl<T, Item> Unpin for ReuniteError<T, Item> where SplitSink<T, Item>: Unpin, SplitStream<T>: Unpin,

impl<T, Item> UnsafeUnpin for ReuniteError<T, Item> where SplitSink<T, Item>: UnsafeUnpin, SplitStream<T>: UnsafeUnpin,

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> From<T> for ReuniteError<T, Item>

fn from(t: T) -> T

Returns the argument unchanged.

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

fn to_string(&self) -> String

impl<T, U> Into<U> for ReuniteError<T, Item> 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, Item> where U: Into<T>,

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

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

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