Struct crossbeam_channel::SelectSendError [] [src]

pub struct SelectSendError<T>(pub T);

An error returned from the Select::send method.

This error occurs when the selection case doesn't send a message into the channel. Note that cases enumerated in a selection loop are sometimes simply skipped, so they might fail even if the channel is currently not full.

Methods

impl<T> SelectSendError<T>
[src]

[src]

Unwraps the value.

Examples

use crossbeam_channel::{unbounded, Select};

let (tx, rx) = unbounded();

let mut msg = "message".to_string();
let mut sel = Select::new();
loop {
    if let Err(err) = sel.send(&tx, msg) {
        msg = err.into_inner();
    } else {
        break;
    }
}

Trait Implementations

impl<T: PartialEq> PartialEq for SelectSendError<T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<T: Eq> Eq for SelectSendError<T>
[src]

impl<T: Clone> Clone for SelectSendError<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Copy> Copy for SelectSendError<T>
[src]

impl<T: Send> Debug for SelectSendError<T>
[src]

[src]

Formats the value using the given formatter.

impl<T: Send> Display for SelectSendError<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: Send> Error for SelectSendError<T>
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more