Trait net_traits::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§