pub trait MessagePipe<T>: Sized {
// Required methods
fn new() -> (Self, Self);
fn send(&mut self, value: T);
fn recv(&mut self) -> Option<T>;
}
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Expand description
A message pipe used for communicating between server and client threads.
Required Methods§
Sourcefn new() -> (Self, Self)
🔬This is a nightly-only experimental API. (proc_macro_internals
#27812)
fn new() -> (Self, Self)
proc_macro_internals
#27812)Creates a new pair of endpoints for the message pipe.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.