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

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

Sender 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 send function.

Loading content...

Required methods

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

Send a message.

Loading content...

Implementations on Foreign Types

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

type Item = T

type Error = SendError<Self::Item>

impl<T: Serialize> Sender for IpcSender<T>[src]

type Item = T

type Error = Error

Loading content...

Implementors

Loading content...