net_traits

Trait IpcSend

Source
pub trait IpcSend<T>
where T: Serialize + for<'de> Deserialize<'de>,
{ // Required methods fn send(&self, _: T) -> IpcSendResult; fn sender(&self) -> IpcSender<T>; }
Expand description

Abstraction of the ability to send a particular type of message, used by net_traits::ResourceThreads to ease the use its IpcSender sub-fields XXX: If this trait will be used more in future, some auto derive might be appealing

Required Methods§

Source

fn send(&self, _: T) -> IpcSendResult

send message T

Source

fn sender(&self) -> IpcSender<T>

get underlying sender

Implementors§