[][src]Trait dqcsim::common::channel::Receiver

pub trait Receiver {
    type Item;
    type Error: Debug;
    fn recv(&self) -> Result<Self::Item, Self::Error>;
}

Receiver side of a channel.

Associated Types

type Item

The message type of the channel.

type Error: Debug

The error type of the Result returned by the recv function.

Loading content...

Required methods

fn recv(&self) -> Result<Self::Item, Self::Error>

Receive a message.

Loading content...

Implementations on Foreign Types

impl<T> Receiver for Receiver<T>[src]

type Item = T

type Error = RecvError

impl<T> Receiver for IpcReceiver<T> where
    T: Serialize + for<'de> Deserialize<'de>, 
[src]

type Item = T

type Error = IpcError

Loading content...

Implementors

Loading content...