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§
sourcefn send(&self, _: T) -> IpcSendResult
fn send(&self, _: T) -> IpcSendResult
send message T