pub type PayloadSender = MsgSender<Payload>;

Aliased Type§

struct PayloadSender {
    tx: Sender<Payload>,
}

Fields§

§tx: Sender<Payload>

Implementations§

source§

impl<T> MsgSender<T>

source

pub fn send(&self, data: T) -> Result<(), Error>

Trait Implementations§

source§

impl<T: Clone> Clone for MsgSender<T>

source§

fn clone(&self) -> MsgSender<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'de, T> Deserialize<'de> for MsgSender<T>

source§

fn deserialize<D>(_: D) -> Result<MsgSender<T>, D::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<T> Serialize for MsgSender<T>

These serialize methods are needed to satisfy the compiler which uses these implementations for the recording tool. The recording tool only outputs messages that don’t contain Senders or Receivers, so in theory these should never be called in the in-process config. If they are called, there may be a bug in the messages that the replay tool is writing.

source§

fn serialize<S: Serializer>(&self, _: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more