Struct PollSendError

pub struct PollSendError<T>(/* private field */);

Error returned by the PollSender when the channel is closed.

Implementations

impl<T> PollSendError<T>

fn into_inner(self) -> Option<T>

Consumes the stored value, if any.

If this error was encountered when calling start_send/send_item, this will be the item that the caller attempted to send. Otherwise, it will be None.

Trait Implementations

impl<T> Display for PollSendError<T>

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

impl<T: Debug> Debug for PollSendError<T>

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

impl<T: Debug> Error for PollSendError<T>

Auto Trait Implementations

impl<T> Freeze for PollSendError<T> where Option<T>: Freeze,

impl<T> RefUnwindSafe for PollSendError<T> where Option<T>: RefUnwindSafe,

impl<T> Send for PollSendError<T> where Option<T>: Send,

impl<T> Sync for PollSendError<T> where Option<T>: Sync,

impl<T> Unpin for PollSendError<T> where Option<T>: Unpin,

impl<T> UnsafeUnpin for PollSendError<T> where Option<T>: UnsafeUnpin,

impl<T> UnwindSafe for PollSendError<T> where Option<T>: UnwindSafe,

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> From<T> for PollSendError<T>

fn from(t: T) -> T

Returns the argument unchanged.

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

fn to_string(&self) -> String

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

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

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

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